Class OmsMorpher


  • public class OmsMorpher
    extends HMModel
    • Field Detail

      • inMap

        public org.geotools.coverage.grid.GridCoverage2D inMap
      • pKernel

        public int[] pKernel
      • doBinary

        public boolean doBinary
      • pIterations

        public int pIterations
      • outMap

        public org.geotools.coverage.grid.GridCoverage2D outMap
    • Constructor Detail

      • OmsMorpher

        public OmsMorpher()
    • Method Detail

      • dilate

        public static void dilate​(WritableRaster inWR,
                                  double inNovalue,
                                  RegionMap regionMap,
                                  WritableRaster outWR,
                                  int[] kernelArray,
                                  boolean binary,
                                  IHMProgressMonitor pm)
        Morphologically dilates an input raster by a given kernel.
        Parameters:
        inWR - the input raster.
        regionMap - the RegionMap.
        outWR - the raster to modify.
        kernelArray - the kernel to use.
        binary - if true, binary mode is used.
        pm -
      • erode

        public static void erode​(WritableRaster inWR,
                                 double inNovalue,
                                 RegionMap regionMap,
                                 WritableRaster outWR,
                                 int[] kernelArray,
                                 IHMProgressMonitor pm)
        Morphologically erodes an input raster by a given kernel.
        Parameters:
        inWR - the input raster.
        regionMap - the RegionMap.
        outWR - the raster to modify.
        kernelArray - the kernel to use.
      • open

        public static void open​(WritableRaster inWR,
                                double inNovalue,
                                RegionMap regionMap,
                                WritableRaster outWR,
                                int[] kernelArray,
                                boolean binary,
                                IHMProgressMonitor pm)
        Morphologically opens an input raster by a given kernel.
        Parameters:
        inWR - the input raster.
        regionMap - the RegionMap.
        outWR - the raster to modify.
        kernelArray - the kernel to use.
        binary - if true, binary mode is used.
      • close

        public static void close​(WritableRaster inWR,
                                 double inNovalue,
                                 RegionMap regionMap,
                                 WritableRaster outWR,
                                 int[] kernelArray,
                                 boolean binary,
                                 IHMProgressMonitor pm)
        Morphologically closes an input raster by a given kernel.
        Parameters:
        inWR - the input raster.
        regionMap - the RegionMap.
        outWR - the raster to modify.
        kernelArray - the kernel to use.
        binary - if true, binary mode is used.
      • fromBinaryFast

        public static void fromBinaryFast​(int cols,
                                          int rows,
                                          javax.media.jai.iterator.WritableRandomIter outIter,
                                          BinaryFast binaryData)
      • toBinaryFast

        public static BinaryFast toBinaryFast​(int cols,
                                              int rows,
                                              javax.media.jai.iterator.WritableRandomIter inIter)