Class GeneralizedImageOps


public class GeneralizedImageOps extends Object

Operations that return information about the specific image. Useful when writing highly abstracted code which is independent of the input image.

  • Constructor Details

    • GeneralizedImageOps

      public GeneralizedImageOps()
  • Method Details

    • isFloatingPoint

      public static boolean isFloatingPoint(Class<?> imgType)
    • get

      public static double get(ImageBorder img, int x, int y)
    • get

      public static double get(ImageGray img, int x, int y)
    • get

      public static double get(ImageBase img, int x, int y, int band)
    • get

      public static double get(ImageInterleaved img, int x, int y, int band)
    • createSingleBand

      public static <T extends ImageGray> T createSingleBand(ImageDataType type, int width, int height)
    • createImage

      public static <T extends ImageBase> T createImage(Class<T> type, int width, int height, int numBands)
    • createSingleBand

      public static <T extends ImageGray<T>> T createSingleBand(Class<T> type, int width, int height)
    • createInterleaved

      public static <T extends ImageInterleaved> T createInterleaved(ImageDataType type, int width, int height, int numBands)
    • createInterleaved

      public static <T extends ImageInterleaved<T>> T createInterleaved(Class<T> type, int width, int height, int numBands)
    • set

      public static void set(ImageGray img, int x, int y, double value)
    • setM

      public static void setM(ImageBase img, int x, int y, double... value)
    • setB

      public static void setB(ImageBase img, int x, int y, int band, double value)
    • getNumBits

      public static <T extends ImageGray<T>> int getNumBits(Class<T> type)
    • createGrowArray

      public static GrowArray createGrowArray(ImageType<?> type)
    • convertGenericToSpecificType

      public static <T> T convertGenericToSpecificType(Class<?> type)
      If an image is to be created then the generic type can't be used a specific one needs to be. An arbitrary specific image type is returned here.
    • getArray

      public static Object getArray(ImageGray input)
    • arrayElement

      public static double arrayElement(Object array, int i, boolean signed)