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

Class InterleavedF64

    • Field Detail

      • data

        public double[] data
    • Constructor Detail

      • InterleavedF64

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

        public InterleavedF64()
    • Method Detail

      • get

        public double[] get(int x,
                            int y,
                            double[] 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 void get_unsafe(int x,
                               int y,
                               double[] storage)
      • set

        public void set(int x,
                        int y,
                        double... 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 void set_unsafe(int x,
                               int y,
                               double... value)
      • getBand

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

        public InterleavedF64 _createNew(int imgWidth,
                                         int imgHeight)
        Description copied from class: ImageBase
        Returns a new image. If either width or height are set to -1 then none of the class parameters set. Otherwise a new image is created with the specified dimensions which has all other parameters the same as the original matrix.
        Specified by:
        _createNew in class ImageBase<InterleavedF64>
        Parameters:
        imgWidth - Width of the new image
        imgHeight - height of the new image
        Returns:
        new image

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.