Commit b8da02a5 authored by Otmane Lahlou's avatar Otmane Lahlou

ENH: add RAMParameter in the applications

parent e0426461
......@@ -67,6 +67,9 @@ private:
AddParameter(ParameterType_InputImage, "in2", "Input Image 2");
AddParameter(ParameterType_OutputImage, "out", "Change Map");
SetParameterDescription("out","Image of detected changes.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -100,6 +100,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription( "out", "Output labeled image");
SetParameterOutputImagePixelType( "out", ImagePixelType_uint8);
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -96,6 +96,9 @@ private:
SetParameterDescription("in","Input image filename.");
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out","Output image filename.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_InputImage, "vm", "Validity Mask");
SetParameterDescription("vm","Validity mask. Only non-zero pixels will be used to estimate KMeans modes.");
AddParameter(ParameterType_Int, "ts", "Training set size");
......
......@@ -78,6 +78,9 @@ private:
SetParameterDescription("in", "Input image filename.");
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out","Output image filename.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Filename, "ct", "Color table");
SetParameterDescription("ct", "An ASCII file containing the color table\n"
"with one color per line\n"
......
......@@ -156,6 +156,10 @@ private:
AddParameter(ParameterType_OutputImage, "oe", "Output Endmembers");
MandatoryOff("oe");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -77,9 +77,12 @@ private:
AddParameter(ParameterType_Directory, "dem", "DEM directory");
AddParameter(ParameterType_Float, "lms", "Spacing of the deformation field");
AddParameter(ParameterType_OutputImage, "out", "Output image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("lms");
MandatoryOff("dem");
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -108,6 +108,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Radiometric indices output image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Group, "channels", "Channels selection");
SetParameterDescription("channels", "Channels selection");
AddParameter(ParameterType_Int, "channels.red", "Red Channel");
......
......@@ -101,6 +101,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out","Calibrated image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Empty, "milli", "Convert to milli reflectance");
SetParameterDescription("milli", "Output milli-reflectance instead of reflectance.\n"
"This allows to put save the image in integer pixel type instead of floating point.");
......
......@@ -68,6 +68,9 @@ private:
{
AddParameter(ParameterType_ComplexInputImage, "cin", "Input Complex Image");
AddParameter(ParameterType_ComplexOutputImage, "out", "Output Image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Empty, "noise", "Disable Noise");
MandatoryOff("noise");
}
......
......@@ -76,6 +76,10 @@ private:
MandatoryOff("lout");
MandatoryOff("cbout");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Int, "spatialr", "Spatial radius");
AddParameter(ParameterType_Float, "ranger", "Range radius");
AddParameter(ParameterType_Int, "minsize", "Min region size");
......
......@@ -75,6 +75,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out","Output image.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_String, "exp", "Expression");
SetParameterDescription("exp",
"The mathematical expression to apply. \nUse im1b1 for the first band, im1b2 for the second one...");
......
......@@ -84,6 +84,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Output multiband image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -112,6 +112,10 @@ private:
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Output image");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
......@@ -73,6 +73,11 @@ private:
SetParameterDescription("in", "Input image.");
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "Output image.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Int, "startx", "Start X");
SetParameterDescription("startx", "ROI start x position.");
AddParameter(ParameterType_Int, "starty", "Start Y");
......@@ -81,6 +86,7 @@ private:
SetParameterDescription("sizex","size along x in pixels.");
AddParameter(ParameterType_Int, "sizey", "Size Y");
SetParameterDescription("sizey","size along y in pixels.");
// Default values
SetDefaultParameterInt("startx", 0);
SetDefaultParameterInt("starty", 0);
......
......@@ -84,6 +84,10 @@ private:
SetParameterDescription("out","will be used to get the prefix and the extension of the images to write");
SetParameterRole("out", Role_Output);
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Int, "level", "Number Of Levels");
SetDefaultParameterInt("level", 1);
SetParameterDescription( "level", "Number of levels in the pyramid (default is 1).");
......
......@@ -72,6 +72,11 @@ private:
SetParameterDescription( "in", "The image to scale." );
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription( "out" , "The rescaled image filename." );
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Float, "outmin", "Output min value");
AddParameter(ParameterType_Float, "outmax", "Output max value");
SetDefaultParameterFloat("outmin", 0.0);
......
......@@ -79,6 +79,11 @@ private:
SetParameterDescription("in", "Input image to filter.");
AddParameter(ParameterType_OutputImage, "out", "Output Image");
SetParameterDescription("out", "filtered image.");
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
AddParameter(ParameterType_Choice, "type", "Smoothing Type");
SetParameterDescription("type", "smoothing kernel to apply : mean, gaussian, anisotropric diffusion.");
AddChoice("type.mean", "Mean");
......
......@@ -72,6 +72,10 @@ private:
SetParameterDescription("out",
"Will be used to get the prefix and the extension of the output images to write");
SetParameterRole("out", Role_Output);
AddParameter(ParameterType_RAM, "ram", "Available RAM");
SetDefaultParameterInt("ram", 256);
MandatoryOff("ram");
}
void DoUpdateParameters()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment