public class GreyscaleFilter extends RGBImageFilter
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
canFilterIndexColorModel, newmodel, origmodel
consumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
GreyscaleFilter()
The only constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
filterRGB(int x,
int y,
int rgb)
This method is never called because we override filterRGBPixels()
(this is done for efficiency, since don't have to call this method
for every pixel).
|
void |
filterRGBPixels(int x,
int y,
int w,
int h,
int[] pixels,
int off,
int scansize)
This method performs the actual modification of the image.
|
filterIndexColorModel, setColorModel, setPixels, setPixels, substituteColorModel
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
public int filterRGB(int x, int y, int rgb)
filterRGB
in class RGBImageFilter
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize)
filterRGBPixels
in class RGBImageFilter
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.