Documentation of 'boofcv.struct.image.InterleavedInteger' Java class
InterleavedInteger
boofcv.struct.image

Class InterleavedInteger<T extends InterleavedInteger>

    • Constructor Detail

      • InterleavedInteger

        public InterleavedInteger(int width,
                                  int height,
                                  int numBands)
        Creates a new image with an arbitrary number of bands/colors.
        Parameters:
        width - number of columns in the image.
        height - number of rows in the image.
        numBands - number of bands/colors in the image.
      • InterleavedInteger

        public InterleavedInteger()
    • Method Detail

      • get

        public int[] get(int x,
                         int y,
                         int[] storage)
        Returns the pixel's value for all the bands as an array.
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        storage - If not null then the pixel's value is written here. If null a new array is created.
        Returns:
        The pixel's value.
      • get_unsafe

        public abstract void get_unsafe(int x,
                                        int y,
                                        int[] storage)
      • set

        public void set(int x,
                        int y,
                        int... value)
        Sets the pixel's value for all the bands using an array.
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        value - The pixel's new value for each band.
      • set_unsafe

        public abstract void set_unsafe(int x,
                                        int y,
                                        int... value)
      • getBand

        public abstract int getBand(int x,
                                    int y,
                                    int band)
        Returns the value of the specified band in the specified pixel.
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        band - which color band in the pixel
        Returns:
        an intensity value.
      • setBand

        public abstract void setBand(int x,
                                     int y,
                                     int band,
                                     int value)
        Returns the value of the specified band in the specified pixel.
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        band - which color band in the pixel
        value - The new value of the element.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.