Tried method 2 again. This time I got an overflow exception. Here's my latest script:
Code:
ImportGDAL|B:\CA\Section_64\Images\CA_BW49_DEM.tif|*|NOREPROJ|String;type|elev
ImportGDAL|B:\CA\Section_64\Images\CA_BW49.tif|*|NOREPROJ|String;type|image
ProcessElevationRaster|type="elev"|SLOPE|String;type|slope|1;0
DetectFeatures|type="slope"|B:\CA\Section_64\_Control Data\CA_Section_64_TFE_Water-Meth2-SlopeThres.tf2|String;type|mask|NONE
DetectFeatures|type="image"|B:\CA\Section_64\_Control Data\CA_Section_64_TFE_Water.tf2|String;type|water|type="mask"
ExportOGR|WatType="water"|ESRI Shapefile|B:\CA\Section_64\Masks Water\CA_BW49_WM.shp|water
Using two tf2 scripts as required. The first DetectFeatures uses the simple/straightforward steps of:
Input Image-->threshold Binary Inverse--->Output Image
and the 2nd DetectFeatures uses my standard water detection script using some 20-30 sample images. After about running 20 minutes (Water detection usually takes around 8 minutes), I got the following error:
1:34 PM SceneryProcessor Error System.OverflowException: Value was either too large or too small for an unsigned byte.
at System.Convert.ToByte(Int32 value)
at ASToFra.scenProc.DataModel.TextureFilter.Mean.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.DataModel.TextureFilter.Merge3.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.DataModel.TextureFilter.Svm.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.DataModel.TextureFilter.Erode.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.DataModel.TextureFilter.Dilate.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.DataModel.TextureFilter.OutputImage.GetImage(Int32 outputConnectorIndex, GridCell cell, BoundingBox bbox, Mat overwriteInput, Mat mask)
at ASToFra.scenProc.Steps.DetectFeatures.Process(List`1 cells, String[] arguments)
at ASToFra.scenProc.Processor.SceneryProcessor.Process()
at ASToFra.scenProc.Processor.SceneryProcessor.ProcessConfig(String filename, List`1 commands)
My question is... should I be using the same sample images for both DetectFeatures steps?