Class FImageWrapper

    • Constructor Detail

      • FImageWrapper

        protected FImageWrapper​(org.openimaj.image.FImage image,
                                ChannelType channelType)
    • Method Detail

      • getWidth

        public int getWidth()
        Returns:
        The image width
      • getHeight

        public int getHeight()
        Returns:
        The image height
      • getChannels

        public int getChannels()
        Returns:
        The number of channels
      • getValue

        public double getValue​(int x,
                               int y,
                               int channel)
        Description copied from interface: ImageWrapper
        Returns the value for a specific pixel and channel
        Parameters:
        x - the x-coordinate of the pixel
        y - the y-coordinate of the pixel
        channel - the channel to select of a specific pixel
        Returns:
        the value for the pixel and channel
      • setValue

        public void setValue​(int x,
                             int y,
                             int channel,
                             double val)
        Description copied from interface: ImageWrapper
        Sets a value for a specific pixel and channel
        Parameters:
        x - the x-coordinate of the pixel
        y - the y-coordinate of the pixel
        channel - the channel to select of a specific pixel
        val - the value for the pixel and channel
      • getSupportedType

        public Class<org.openimaj.image.FImage> getSupportedType()
        Returns:
        the supported image type.