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

Class GrayI8<T extends GrayI8>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    GrayS8, GrayU8


    public abstract class GrayI8<T extends GrayI8>
    extends GrayI<T>

    Base class for images with 8-bit pixels.

    See Also:
    Serialized Form
    • Field Detail

      • data

        public byte[] data
    • Constructor Detail

      • GrayI8

        public GrayI8(int width,
                      int height)
        Creates a new gray scale (single band/color) image.
        Parameters:
        width - number of columns in the image.
        height - number of rows in the image.
      • GrayI8

        public GrayI8()
    • Method Detail

      • set

        public void set(int x,
                        int y,
                        int value)
        Sets the value of the specified pixel.
        Specified by:
        set in class GrayI<T extends GrayI8>
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        value - The pixel's new value.
      • unsafe_set

        public void unsafe_set(int x,
                               int y,
                               int value)
        Description copied from class: GrayI
        Set function which does not perform bounds checking.
        Specified by:
        unsafe_set in class GrayI<T extends GrayI8>
        Parameters:
        x - pixel coordinate.
        y - pixel coordinate.
        value - The pixel's new value.
      • getData

        public byte[] getData()
      • setData

        public void setData(byte[] data)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.