IMAGE - The type of image that this processor can processpublic interface Inpainter<IMAGE extends Image<?,IMAGE>> extends ImageProcessor<IMAGE>
ImageProcessors, but it is expected that a mask
showing which pixels need to be painted is provided before the
processImage(Image) call.
Inpainters are necessarily not thread safe, but implementations are
expected to be reusable once the mask has been reset. It is expected
that a call to one of the setMask methods is made before every
call to processImage(Image).
| Modifier and Type | Method and Description |
|---|---|
void |
processImage(IMAGE image)
Inpaint the given image, painting all the mask pixels set by a prior call
to
setMask(int,int,Collection), setMask(FImage) or
setMask(int,int,PixelSet...) |
void |
setMask(FImage mask)
Set the mask.
|
void |
setMask(int width,
int height,
Collection<? extends Iterable<Pixel>> mask)
Set the mask.
|
void |
setMask(int width,
int height,
PixelSet... mask)
Set the mask.
|
void setMask(FImage mask)
mask - the mask image; should be binary, with 1 values where painting
needs to occur.void setMask(int width, int height, Collection<? extends Iterable<Pixel>> mask)
width - the mask widthheight - the mask heightmask - the mask pixelsvoid setMask(int width, int height, PixelSet... mask)
width - the mask widthheight - the mask heightmask - the mask pixelsvoid processImage(IMAGE image)
setMask(int,int,Collection), setMask(FImage) or
setMask(int,int,PixelSet...)processImage in interface ImageProcessor<IMAGE extends Image<?,IMAGE>>image - the image to perform inpainting on