Class ConvertImage

java.lang.Object
boofcv.core.image.ConvertImage

@Generated("boofcv.core.image.GenerateConvertImage")
public class ConvertImage
extends Object

Functions for converting between different image types. Pixel values are converted by typecasting. When converting between signed and unsigned types, care should be taken to avoid numerical overflow.

DO NOT MODIFY. Automatically generated code created by GenerateConvertImage

  • Constructor Details

    • ConvertImage

      public ConvertImage()
  • Method Details

    • convert

      public static GrayS8 convert​(GrayU8 input, GrayS8 output)

      Converts an GrayU8 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedU8 input, InterleavedS8 output)

      Converts an InterleavedU8 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayU8 input, GrayU16 output)

      Converts an GrayU8 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedU8 input, InterleavedU16 output)

      Converts an InterleavedU8 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayU8 input, GrayS16 output)

      Converts an GrayU8 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedU8 input, InterleavedS16 output)

      Converts an InterleavedU8 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayU8 input, GrayS32 output)

      Converts an GrayU8 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedU8 input, InterleavedS32 output)

      Converts an InterleavedU8 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayU8 input, GrayS64 output)

      Converts an GrayU8 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedU8 input, InterleavedS64 output)

      Converts an InterleavedU8 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayU8 input, GrayF32 output)

      Converts an GrayU8 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedU8 input, InterleavedF32 output)

      Converts an InterleavedU8 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayU8 input, GrayF64 output)

      Converts an GrayU8 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedU8 input, InterleavedF64 output)

      Converts an InterleavedU8 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayU8 average​(Planar<GrayU8> input, GrayU8 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(Planar<GrayU8> input, InterleavedU8 output)
      Converts a Planar into the equivalent InterleavedU8
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayU8 average​(InterleavedU8 input, GrayU8 output)
      Converts a InterleavedU8 into a GrayU8 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayU8> convert​(InterleavedU8 input, Planar<GrayU8> output)
      Converts a InterleavedU8 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayU8 input, int min, int max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayS8 input, GrayU8 output)

      Converts an GrayS8 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedS8 input, InterleavedU8 output)

      Converts an InterleavedS8 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayS8 input, GrayU16 output)

      Converts an GrayS8 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedS8 input, InterleavedU16 output)

      Converts an InterleavedS8 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayS8 input, GrayS16 output)

      Converts an GrayS8 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedS8 input, InterleavedS16 output)

      Converts an InterleavedS8 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayS8 input, GrayS32 output)

      Converts an GrayS8 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedS8 input, InterleavedS32 output)

      Converts an InterleavedS8 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayS8 input, GrayS64 output)

      Converts an GrayS8 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedS8 input, InterleavedS64 output)

      Converts an InterleavedS8 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayS8 input, GrayF32 output)

      Converts an GrayS8 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedS8 input, InterleavedF32 output)

      Converts an InterleavedS8 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayS8 input, GrayF64 output)

      Converts an GrayS8 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedS8 input, InterleavedF64 output)

      Converts an InterleavedS8 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS8 average​(Planar<GrayS8> input, GrayS8 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(Planar<GrayS8> input, InterleavedS8 output)
      Converts a Planar into the equivalent InterleavedS8
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS8 average​(InterleavedS8 input, GrayS8 output)
      Converts a InterleavedS8 into a GrayS8 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayS8> convert​(InterleavedS8 input, Planar<GrayS8> output)
      Converts a InterleavedS8 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayS8 input, int min, int max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayU16 input, GrayU8 output)

      Converts an GrayU16 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedU16 input, InterleavedU8 output)

      Converts an InterleavedU16 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayU16 input, GrayS8 output)

      Converts an GrayU16 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedU16 input, InterleavedS8 output)

      Converts an InterleavedU16 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayU16 input, GrayS16 output)

      Converts an GrayU16 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedU16 input, InterleavedS16 output)

      Converts an InterleavedU16 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayU16 input, GrayS32 output)

      Converts an GrayU16 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedU16 input, InterleavedS32 output)

      Converts an InterleavedU16 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayU16 input, GrayS64 output)

      Converts an GrayU16 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedU16 input, InterleavedS64 output)

      Converts an InterleavedU16 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayU16 input, GrayF32 output)

      Converts an GrayU16 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedU16 input, InterleavedF32 output)

      Converts an InterleavedU16 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayU16 input, GrayF64 output)

      Converts an GrayU16 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedU16 input, InterleavedF64 output)

      Converts an InterleavedU16 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayU16 average​(Planar<GrayU16> input, GrayU16 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(Planar<GrayU16> input, InterleavedU16 output)
      Converts a Planar into the equivalent InterleavedU16
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayU16 average​(InterleavedU16 input, GrayU16 output)
      Converts a InterleavedU16 into a GrayU16 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayU16> convert​(InterleavedU16 input, Planar<GrayU16> output)
      Converts a InterleavedU16 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayU16 input, int min, int max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayS16 input, GrayU8 output)

      Converts an GrayS16 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedS16 input, InterleavedU8 output)

      Converts an InterleavedS16 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayS16 input, GrayS8 output)

      Converts an GrayS16 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedS16 input, InterleavedS8 output)

      Converts an InterleavedS16 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayS16 input, GrayU16 output)

      Converts an GrayS16 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedS16 input, InterleavedU16 output)

      Converts an InterleavedS16 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayS16 input, GrayS32 output)

      Converts an GrayS16 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedS16 input, InterleavedS32 output)

      Converts an InterleavedS16 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayS16 input, GrayS64 output)

      Converts an GrayS16 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedS16 input, InterleavedS64 output)

      Converts an InterleavedS16 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayS16 input, GrayF32 output)

      Converts an GrayS16 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedS16 input, InterleavedF32 output)

      Converts an InterleavedS16 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayS16 input, GrayF64 output)

      Converts an GrayS16 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedS16 input, InterleavedF64 output)

      Converts an InterleavedS16 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS16 average​(Planar<GrayS16> input, GrayS16 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(Planar<GrayS16> input, InterleavedS16 output)
      Converts a Planar into the equivalent InterleavedS16
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS16 average​(InterleavedS16 input, GrayS16 output)
      Converts a InterleavedS16 into a GrayS16 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayS16> convert​(InterleavedS16 input, Planar<GrayS16> output)
      Converts a InterleavedS16 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayS16 input, int min, int max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayS32 input, GrayU8 output)

      Converts an GrayS32 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedS32 input, InterleavedU8 output)

      Converts an InterleavedS32 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayS32 input, GrayS8 output)

      Converts an GrayS32 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedS32 input, InterleavedS8 output)

      Converts an InterleavedS32 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayS32 input, GrayU16 output)

      Converts an GrayS32 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedS32 input, InterleavedU16 output)

      Converts an InterleavedS32 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayS32 input, GrayS16 output)

      Converts an GrayS32 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedS32 input, InterleavedS16 output)

      Converts an InterleavedS32 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayS32 input, GrayS64 output)

      Converts an GrayS32 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedS32 input, InterleavedS64 output)

      Converts an InterleavedS32 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayS32 input, GrayF32 output)

      Converts an GrayS32 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedS32 input, InterleavedF32 output)

      Converts an InterleavedS32 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayS32 input, GrayF64 output)

      Converts an GrayS32 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedS32 input, InterleavedF64 output)

      Converts an InterleavedS32 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS32 average​(Planar<GrayS32> input, GrayS32 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(Planar<GrayS32> input, InterleavedS32 output)
      Converts a Planar into the equivalent InterleavedS32
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS32 average​(InterleavedS32 input, GrayS32 output)
      Converts a InterleavedS32 into a GrayS32 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayS32> convert​(InterleavedS32 input, Planar<GrayS32> output)
      Converts a InterleavedS32 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayS32 input, int min, int max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayS64 input, GrayU8 output)

      Converts an GrayS64 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedS64 input, InterleavedU8 output)

      Converts an InterleavedS64 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayS64 input, GrayS8 output)

      Converts an GrayS64 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedS64 input, InterleavedS8 output)

      Converts an InterleavedS64 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayS64 input, GrayU16 output)

      Converts an GrayS64 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedS64 input, InterleavedU16 output)

      Converts an InterleavedS64 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayS64 input, GrayS16 output)

      Converts an GrayS64 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedS64 input, InterleavedS16 output)

      Converts an InterleavedS64 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayS64 input, GrayS32 output)

      Converts an GrayS64 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedS64 input, InterleavedS32 output)

      Converts an InterleavedS64 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayS64 input, GrayF32 output)

      Converts an GrayS64 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedS64 input, InterleavedF32 output)

      Converts an InterleavedS64 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayS64 input, GrayF64 output)

      Converts an GrayS64 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedS64 input, InterleavedF64 output)

      Converts an InterleavedS64 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS64 average​(Planar<GrayS64> input, GrayS64 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(Planar<GrayS64> input, InterleavedS64 output)
      Converts a Planar into the equivalent InterleavedS64
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayS64 average​(InterleavedS64 input, GrayS64 output)
      Converts a InterleavedS64 into a GrayS64 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayS64> convert​(InterleavedS64 input, Planar<GrayS64> output)
      Converts a InterleavedS64 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayS64 input, long min, long max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayF32 input, GrayU8 output)

      Converts an GrayF32 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedF32 input, InterleavedU8 output)

      Converts an InterleavedF32 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayF32 input, GrayS8 output)

      Converts an GrayF32 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedF32 input, InterleavedS8 output)

      Converts an InterleavedF32 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayF32 input, GrayU16 output)

      Converts an GrayF32 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedF32 input, InterleavedU16 output)

      Converts an InterleavedF32 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayF32 input, GrayS16 output)

      Converts an GrayF32 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedF32 input, InterleavedS16 output)

      Converts an InterleavedF32 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayF32 input, GrayS32 output)

      Converts an GrayF32 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedF32 input, InterleavedS32 output)

      Converts an InterleavedF32 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayF32 input, GrayS64 output)

      Converts an GrayF32 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedF32 input, InterleavedS64 output)

      Converts an InterleavedF32 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF64 convert​(GrayF32 input, GrayF64 output)

      Converts an GrayF32 into a GrayF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(InterleavedF32 input, InterleavedF64 output)

      Converts an InterleavedF32 into a InterleavedF64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayF32 average​(Planar<GrayF32> input, GrayF32 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(Planar<GrayF32> input, InterleavedF32 output)
      Converts a Planar into the equivalent InterleavedF32
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayF32 average​(InterleavedF32 input, GrayF32 output)
      Converts a InterleavedF32 into a GrayF32 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayF32> convert​(InterleavedF32 input, Planar<GrayF32> output)
      Converts a InterleavedF32 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayF32 input, float min, float max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convert

      public static GrayU8 convert​(GrayF64 input, GrayU8 output)

      Converts an GrayF64 into a GrayU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU8 convert​(InterleavedF64 input, InterleavedU8 output)

      Converts an InterleavedF64 into a InterleavedU8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS8 convert​(GrayF64 input, GrayS8 output)

      Converts an GrayF64 into a GrayS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS8 convert​(InterleavedF64 input, InterleavedS8 output)

      Converts an InterleavedF64 into a InterleavedS8.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU16 convert​(GrayF64 input, GrayU16 output)

      Converts an GrayF64 into a GrayU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedU16 convert​(InterleavedF64 input, InterleavedU16 output)

      Converts an InterleavedF64 into a InterleavedU16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS16 convert​(GrayF64 input, GrayS16 output)

      Converts an GrayF64 into a GrayS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS16 convert​(InterleavedF64 input, InterleavedS16 output)

      Converts an InterleavedF64 into a InterleavedS16.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS32 convert​(GrayF64 input, GrayS32 output)

      Converts an GrayF64 into a GrayS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS32 convert​(InterleavedF64 input, InterleavedS32 output)

      Converts an InterleavedF64 into a InterleavedS32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayS64 convert​(GrayF64 input, GrayS64 output)

      Converts an GrayF64 into a GrayS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedS64 convert​(InterleavedF64 input, InterleavedS64 output)

      Converts an InterleavedF64 into a InterleavedS64.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayF32 convert​(GrayF64 input, GrayF32 output)

      Converts an GrayF64 into a GrayF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF32 convert​(InterleavedF64 input, InterleavedF32 output)

      Converts an InterleavedF64 into a InterleavedF32.

      Parameters:
      input - Input image which is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayF64 average​(Planar<GrayF64> input, GrayF64 output)
      Converts a Planar into a ImageGray by computing the average value of each pixel across all the bands.
      Parameters:
      input - Input Planar image that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static InterleavedF64 convert​(Planar<GrayF64> input, InterleavedF64 output)
      Converts a Planar into the equivalent InterleavedF64
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • average

      public static GrayF64 average​(InterleavedF64 input, GrayF64 output)
      Converts a InterleavedF64 into a GrayF64 by computing the average value of each pixel across all the bands.
      Parameters:
      input - (Input) The ImageInterleaved that is being converted. Not modified.
      output - (Optional) The single band output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static Planar<GrayF64> convert​(InterleavedF64 input, Planar<GrayF64> output)
      Converts a InterleavedF64 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convert

      public static GrayU8 convert​(GrayF64 input, double min, double max, int numValues, GrayU8 output)
      Converts pixel values in the input image into an integer values from 0 to numValues.
      Parameters:
      input - Input image
      min - minimum input pixel value, inclusive
      max - maximum input pixel value, inclusive
      numValues - Number of possible pixel values in output image
      output - (Optional) Storage for the output image. Can be null.
      Returns:
      The converted output image.
    • convertU8F32

      public static Planar<GrayF32> convertU8F32​(InterleavedU8 input, Planar<GrayF32> output)
      Converts a InterleavedU8 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convertF32U8

      public static Planar<GrayU8> convertF32U8​(InterleavedF32 input, Planar<GrayU8> output)
      Converts a InterleavedF32 into the equivalent Planar
      Parameters:
      input - (Input) ImageInterleaved that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convertU8F32

      public static InterleavedF32 convertU8F32​(Planar<GrayU8> input, InterleavedF32 output)
      Converts a Planar into the equivalent InterleavedF32
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.
    • convertF32U8

      public static InterleavedU8 convertF32U8​(Planar<GrayF32> input, InterleavedU8 output)
      Converts a Planar into the equivalent InterleavedU8
      Parameters:
      input - (Input) Planar image that is being converted. Not modified.
      output - (Optional) The output image. If null a new image is created. Modified.
      Returns:
      Converted image.