| AbstractGridFormat sublass for controlling
ImageMosaicReader creation.
As the name says, it handles mosaic of georeferenced images, which means
- tiff+tfw+prj
- jpeg+tfw+prj
- png+tfw+prj
- geotiff
This does not mean that you throw there a couple of images and it will do the
trick no matter how these images are. Requirements are:
- (almost) equal spatial resolution
- same number of bands
- same data type
- same projection
The first requirement can be relaxed a little but if they have the same
spatial resolution the performances are much better.
There are parameters that you can use to control the behaviour of the mosaic
in terms of thresholding and transparency. They are as follows:
- --DefaultParameterDescriptor FINAL_ALPHA = new
DefaultParameterDescriptor( "FinalAlpha", Boolean.class, null,
Boolean.FALSE)-- It asks the plugin to add transparency on the final created
mosaic. IT simply performs a threshonding looking for areas where there is no
data, i.e., intensity is really low and transform them into transparent
areas. It is obvious that depending on the nature of the input images it
might interfere with the original values.
- ---ALPHA_THRESHOLD = new DefaultParameterDescriptor( "AlphaThreshold",
Double.class, null, new Double(1));--- Controls the transparency addition by
specifying the treshold to use.
- INPUT_IMAGE_THRESHOLD = new DefaultParameterDescriptor( "InputImageROI",
Boolean.class, null, Boolean.FALSE)--- INPUT_IMAGE_THRESHOLD_VALUE = new
DefaultParameterDescriptor( "InputImageROIThreshold", Integer.class, null,
new Integer(1));--- These two can be used to control the application of ROIs
on the input images based on tresholding values. Basically using the threshold
you can ask the mosaic plugin to load or not certain pixels of the original
images.
author: Simone Giannecchini (simboss) since: 2.3 |