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

Class InterleavedI8<T extends InterleavedI8>

    • Field Detail

      • data

        public byte[] data
    • Constructor Detail

      • InterleavedI8

        public InterleavedI8(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.
      • InterleavedI8

        public InterleavedI8()
    • Method Detail

      • get

        public byte[] get(int x,
                          int y,
                          byte[] 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.
      • set

        public void set(int x,
                        int y,
                        byte... 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.
      • setBand

        public void setBand(int x,
                            int y,
                            int band,
                            byte 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.
      • setBand

        public void setBand(int x,
                            int y,
                            int band,
                            int value)
        Description copied from class: InterleavedInteger
        Returns the value of the specified band in the specified pixel.
        Specified by:
        setBand in class InterleavedInteger<T extends InterleavedI8>
        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.