Skip to content
Snippets Groups Projects
Commit 6e5bcdc0 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: set default pixel type in other applications (color outputs, label outputs,...)

parent 43313c08
No related branches found
No related tags found
No related merge requests found
Showing with 10 additions and 0 deletions
...@@ -156,6 +156,7 @@ private: ...@@ -156,6 +156,7 @@ private:
AddParameter(ParameterType_OutputImage,"out","The output classification image"); AddParameter(ParameterType_OutputImage,"out","The output classification image");
SetParameterDescription("out","The output classification image resulting from the fusion of the input classification images."); SetParameterDescription("out","The output classification image resulting from the fusion of the input classification images.");
SetDefaultOutputPixelType("out",ImagePixelType_uint8);
// Doc example parameter settings // Doc example parameter settings
SetDocExampleParameterValue("il", "classification1.tif classification2.tif classification3.tif"); SetDocExampleParameterValue("il", "classification1.tif classification2.tif classification3.tif");
......
...@@ -181,6 +181,7 @@ private: ...@@ -181,6 +181,7 @@ private:
SetParameterDescription("in", "Input image to classify."); SetParameterDescription("in", "Input image to classify.");
AddParameter(ParameterType_OutputImage, "out", "Output Image"); AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Output image containing the class indexes."); SetParameterDescription("out", "Output image containing the class indexes.");
SetDefaultOutputPixelType("out",ImagePixelType_uint8);
AddRAMParameter(); AddRAMParameter();
......
...@@ -87,6 +87,7 @@ private: ...@@ -87,6 +87,7 @@ private:
AddParameter(ParameterType_OutputImage, "out", "OutputImage"); AddParameter(ParameterType_OutputImage, "out", "OutputImage");
SetParameterDescription("out", "Output classified image (each pixel contains the index of its corresponding vector in the SOM)."); SetParameterDescription("out", "Output classified image (each pixel contains the index of its corresponding vector in the SOM).");
SetDefaultOutputPixelType("out",ImagePixelType_uint8);
AddParameter(ParameterType_InputImage, "vm", "ValidityMask"); AddParameter(ParameterType_InputImage, "vm", "ValidityMask");
SetParameterDescription("vm", "Validity mask (only pixels corresponding to a mask value greater than 0 will be used for learning)"); SetParameterDescription("vm", "Validity mask (only pixels corresponding to a mask value greater than 0 will be used for learning)");
......
...@@ -291,6 +291,7 @@ private: ...@@ -291,6 +291,7 @@ private:
SetParameterDescription("in", "Input image filename"); SetParameterDescription("in", "Input image filename");
AddParameter(ParameterType_OutputImage, "out", "Output Image"); AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out","Output image filename"); SetParameterDescription("out","Output image filename");
SetDefaultOutputPixelType("out",ImagePixelType_uint8);
AddRAMParameter(); AddRAMParameter();
......
...@@ -165,10 +165,12 @@ private: ...@@ -165,10 +165,12 @@ private:
AddParameter(ParameterType_OutputImage, "outgt", "Colored ground truth output"); AddParameter(ParameterType_OutputImage, "outgt", "Colored ground truth output");
SetParameterDescription( "outgt", "The colored ground truth output image." ); SetParameterDescription( "outgt", "The colored ground truth output image." );
SetDefaultOutputPixelType("outgt",ImagePixelType_uint8);
MandatoryOff("outgt"); MandatoryOff("outgt");
AddParameter(ParameterType_OutputImage, "outms", "Colored machine segmentation output"); AddParameter(ParameterType_OutputImage, "outms", "Colored machine segmentation output");
SetParameterDescription( "outms", "The colored machine segmentation output image." ); SetParameterDescription( "outms", "The colored machine segmentation output image." );
SetDefaultOutputPixelType("outms",ImagePixelType_uint8);
MandatoryOff("outms"); MandatoryOff("outms");
// TODO : add color settings ? // TODO : add color settings ?
......
...@@ -225,6 +225,7 @@ private: ...@@ -225,6 +225,7 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image"); AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription( "out", "The output image. The output image is the segmentation of the filtered image. It is recommended to set the pixel type to uint32." ); SetParameterDescription( "out", "The output image. The output image is the segmentation of the filtered image. It is recommended to set the pixel type to uint32." );
SetDefaultOutputPixelType("out",ImagePixelType_uint32);
AddParameter(ParameterType_Float, "ranger", "Range radius"); AddParameter(ParameterType_Float, "ranger", "Range radius");
SetParameterDescription("ranger", "Range radius defining the radius (expressed in radiometry unit) in the multi-spectral space."); SetParameterDescription("ranger", "Range radius defining the radius (expressed in radiometry unit) in the multi-spectral space.");
......
...@@ -90,6 +90,7 @@ private: ...@@ -90,6 +90,7 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image"); AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription( "out", "The output image. The output image is the input image where the minimal regions have been merged." ); SetParameterDescription( "out", "The output image. The output image is the input image where the minimal regions have been merged." );
SetDefaultOutputPixelType("out",ImagePixelType_uint32);
AddParameter(ParameterType_Int, "minsize", "Minimum Region Size"); AddParameter(ParameterType_Int, "minsize", "Minimum Region Size");
SetParameterDescription("minsize", "Minimum Region Size. If, after the segmentation, a region is of size lower than this criterion, the region is merged with the \"nearest\" region (radiometrically)."); SetParameterDescription("minsize", "Minimum Region Size. If, after the segmentation, a region is of size lower than this criterion, the region is merged with the \"nearest\" region (radiometrically).");
......
...@@ -251,6 +251,7 @@ private: ...@@ -251,6 +251,7 @@ private:
//Raster mode parameters //Raster mode parameters
AddParameter(ParameterType_OutputImage, "mode.raster.out", "Output labeled image"); AddParameter(ParameterType_OutputImage, "mode.raster.out", "Output labeled image");
SetParameterDescription( "mode.raster.out", "The output labeled image."); SetParameterDescription( "mode.raster.out", "The output labeled image.");
SetDefaultOutputPixelType("mode.raster.out",ImagePixelType_uint32);
//Streaming vectorization parameters //Streaming vectorization parameters
AddParameter(ParameterType_OutputFilename, "mode.vector.out", "Output vector file"); AddParameter(ParameterType_OutputFilename, "mode.vector.out", "Output vector file");
......
...@@ -155,6 +155,7 @@ private: ...@@ -155,6 +155,7 @@ private:
AddParameter(ParameterType_OutputImage, "io.outmask", "The output mask corresponding to all criterions"); AddParameter(ParameterType_OutputImage, "io.outmask", "The output mask corresponding to all criterions");
SetParameterDescription("io.outmask","A mask image corresponding to all citerions (see masking parameters). Only required if variance threshold or nodata criterions are set."); SetParameterDescription("io.outmask","A mask image corresponding to all citerions (see masking parameters). Only required if variance threshold or nodata criterions are set.");
SetDefaultOutputPixelType("io.outmask",ImagePixelType_uint8);
DisableParameter("io.outmask"); DisableParameter("io.outmask");
MandatoryOff("io.outmask"); MandatoryOff("io.outmask");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment