public class MaskOverviewProvider extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MaskOverviewProvider.MaskInfo
Helper class used for storing information to use for read the mask data.
|
static class |
MaskOverviewProvider.SpiHelper
Helper class containing previous code used to get streamSPI and readerSPI for an input file.
|
Modifier and Type | Field and Description |
---|---|
static String |
OVR_EXTENSION |
Constructor and Description |
---|
MaskOverviewProvider(DatasetLayout layout,
File inputFile) |
MaskOverviewProvider(DatasetLayout layout,
File inputFile,
ImageReaderSpi suggestedSPI) |
MaskOverviewProvider(DatasetLayout layout,
File inputFile,
MaskOverviewProvider.SpiHelper spiProvider) |
MaskOverviewProvider(DatasetLayout layout,
URL inputFile) |
MaskOverviewProvider(DatasetLayout layout,
URL inputFile,
ImageReaderSpi suggestedSPI) |
MaskOverviewProvider(DatasetLayout layout,
URL inputFile,
MaskOverviewProvider.SpiHelper spiProvider) |
Modifier and Type | Method and Description |
---|---|
ImageInputStreamSpi |
getExternalOverviewInputStreamSpi() |
ImageReaderSpi |
getExternalOverviewReaderSpi() |
URL |
getFileURL() |
ImageReaderSpi |
getImageReaderSpi() |
ImageInputStreamSpi |
getInputStreamSpi() |
static ImageInputStreamSpi |
getInputStreamSPIFromURL(URL fileURL)
Returns an
ImageInputStreamSpi instance for the input URL |
DatasetLayout |
getLayout() |
MaskOverviewProvider.MaskInfo |
getMaskInfo(int imageIndex,
Rectangle imageBounds,
ImageReadParam originalParams)
Returns a new
MaskOverviewProvider.MaskInfo instance containing all the parameters to set for accessing
the desired image index |
ImageReaderSpi |
getMaskOvrReaderSpi() |
ImageInputStreamSpi |
getMaskOvrStreamSpi() |
URL |
getMaskOvrURL() |
ImageReaderSpi |
getMaskReaderSpi() |
ImageInputStreamSpi |
getMaskStreamSpi() |
URL |
getMaskURL() |
int |
getNumExternalMasks() |
int |
getNumExternalMasksOverviews() |
int |
getNumExternalOverviews() |
int |
getNumInternalMasks() |
int |
getNumInternalOverviews() |
int |
getNumOverviews() |
int |
getNumOverviews(URL inputFile,
ImageInputStreamSpi streamSpi,
ImageReaderSpi readerSpi) |
int |
getOverviewIndex(int imageIndex)
Returns the external/internal overview image index based on the initial imageindex value
|
double[][] |
getOverviewResolutions(double span0,
double span1)
Returns a double[][] containing the resolutions for all the overviews
|
URL |
getOvrURL() |
static ImageReaderSpi |
getReaderSpiFromStream(ImageReaderSpi suggestedSPI,
ImageInputStream inStream)
Returns an
ImageReaderSpi instance for the input ImageInputStream and the
optional suggested spi. |
boolean |
hasExternalMasks() |
boolean |
hasExternalMasksOverviews() |
boolean |
hasMaskIndexForOverview(int imageIndex)
Returns true if there is a mask at the same resolution of the requested one
|
boolean |
isExternalMask(int imageIndex)
Returns true if the defined index is related to an external image mask index
|
boolean |
isExternalMaskOverviews(int imageIndex)
Returns true if the defined index is related to an external image mask overview index
|
boolean |
isExternalOverview(int imageIndex)
Returns true if the defined index is related to an external image overview index
|
static ROI |
scaleROI(RenderedImage roiRaster,
Rectangle bounds)
Returns a
ROI object based on the input RenderedImage representing ROI |
public static final String OVR_EXTENSION
public MaskOverviewProvider(DatasetLayout layout, File inputFile) throws IOException
IOException
public MaskOverviewProvider(DatasetLayout layout, File inputFile, ImageReaderSpi suggestedSPI) throws IOException
IOException
public MaskOverviewProvider(DatasetLayout layout, URL inputFile) throws IOException
IOException
public MaskOverviewProvider(DatasetLayout layout, URL inputFile, ImageReaderSpi suggestedSPI) throws IOException
IOException
public MaskOverviewProvider(DatasetLayout layout, File inputFile, MaskOverviewProvider.SpiHelper spiProvider) throws IOException
IOException
public MaskOverviewProvider(DatasetLayout layout, URL inputFile, MaskOverviewProvider.SpiHelper spiProvider) throws IOException
IOException
public int getNumOverviews(URL inputFile, ImageInputStreamSpi streamSpi, ImageReaderSpi readerSpi)
public int getOverviewIndex(int imageIndex)
public MaskOverviewProvider.MaskInfo getMaskInfo(int imageIndex, Rectangle imageBounds, ImageReadParam originalParams)
MaskOverviewProvider.MaskInfo
instance containing all the parameters to set for accessing
the desired image indexpublic boolean hasMaskIndexForOverview(int imageIndex)
public boolean isExternalOverview(int imageIndex)
public boolean isExternalMask(int imageIndex)
public boolean isExternalMaskOverviews(int imageIndex)
public boolean hasExternalMasks()
public boolean hasExternalMasksOverviews()
public double[][] getOverviewResolutions(double span0, double span1)
public ImageReaderSpi getExternalOverviewReaderSpi()
public ImageReaderSpi getImageReaderSpi()
public ImageInputStreamSpi getExternalOverviewInputStreamSpi()
public ImageInputStreamSpi getInputStreamSpi()
public ImageInputStreamSpi getMaskStreamSpi()
public ImageReaderSpi getMaskReaderSpi()
public ImageInputStreamSpi getMaskOvrStreamSpi()
public ImageReaderSpi getMaskOvrReaderSpi()
public DatasetLayout getLayout()
public int getNumOverviews()
public int getNumInternalOverviews()
public int getNumExternalOverviews()
public int getNumInternalMasks()
public int getNumExternalMasks()
public int getNumExternalMasksOverviews()
public URL getFileURL()
public URL getOvrURL()
public URL getMaskURL()
public URL getMaskOvrURL()
public static ImageInputStreamSpi getInputStreamSPIFromURL(URL fileURL) throws IOException
ImageInputStreamSpi
instance for the input URL
IOException
public static ImageReaderSpi getReaderSpiFromStream(ImageReaderSpi suggestedSPI, ImageInputStream inStream) throws IOException
ImageReaderSpi
instance for the input ImageInputStream
and the
optional suggested spi.IOException
public static ROI scaleROI(RenderedImage roiRaster, Rectangle bounds)
ROI
object based on the input RenderedImage
representing ROICopyright © 1996–2019 Geotools. All rights reserved.