Class ImageProcessorWrapper

    • Constructor Detail

      • ImageProcessorWrapper

        protected ImageProcessorWrapper​(ij.process.ImageProcessor image,
                                        ChannelType type)
    • Method Detail

      • getChannels

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

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

        public int getHeight()
        Returns:
        The image height
      • 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<ij.process.ImageProcessor> getSupportedType()
        Returns:
        the supported image type.