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

Class InterleavedI16<T extends InterleavedI16>

    • Field Detail

      • data

        public short[] data
    • Constructor Detail

      • InterleavedI16

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

        public InterleavedI16()
    • Method Detail

      • get

        public short[] get(int x,
                           int y,
                           short[] 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,
                        short... 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,
                            short 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 InterleavedI16>
        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.