public class MarvinPluginCollection
extends java.lang.Object
Constructor and Description |
---|
MarvinPluginCollection() |
Modifier and Type | Method and Description |
---|---|
static void |
alphaBoundary(MarvinImage imageIn,
int radius)
Applies a gradient transparency to boundary pixels
|
static void |
alphaBoundary(MarvinImage imageIn,
MarvinImage imageOut,
int radius)
Applies a gradient transparency to boundary pixels
|
static void |
blackAndWhite(MarvinImage image,
int level)
Converts image to black and white.
|
static void |
blackAndWhite(MarvinImage imageIn,
MarvinImage imageOut,
int level)
Converts image to black and white.
|
static void |
blackAndWhite(MarvinImage imageIn,
MarvinImage imageOut,
int level,
MarvinImageMask mask)
Converts image to black and white.
|
static void |
boundaryFill(MarvinImage imageIn,
MarvinImage imageOut,
int x,
int y,
java.awt.Color color)
Fills a closed region of an image, given a start x,y coordinate.
|
static void |
boundaryFill(MarvinImage imageIn,
MarvinImage imageOut,
int x,
int y,
java.awt.Color color,
int threshold)
Fills a closed region of an image, given a start x,y coordinate.
|
static void |
boundaryFill(MarvinImage imageIn,
MarvinImage imageOut,
int x,
int y,
java.awt.Color color,
MarvinImage tile,
int threshold)
Fills a closed region of an image, given a start x,y coordinate.
|
static void |
brightnessAndContrast(MarvinImage image,
int brightness,
int contrast)
Manipulate image brightness and contrast
|
static void |
brightnessAndContrast(MarvinImage imageIn,
MarvinImage imageOut,
int brightness,
int contrast)
Manipulate image brightness and contrast
|
static void |
brightnessAndContrast(MarvinImage imageIn,
MarvinImage imageOut,
int brightness,
int contrast,
MarvinImageMask mask)
Manipulate image brightness and contrast
|
static void |
colorChannel(MarvinImage image,
int red,
int green,
int blue)
Manipulates image color channels
|
static void |
colorChannel(MarvinImage imageIn,
MarvinImage imageOut,
int red,
int green,
int blue)
Manipulates image color channels
|
static void |
colorChannel(MarvinImage imageIn,
MarvinImage imageOut,
int red,
int green,
int blue,
MarvinImageMask mask)
Manipulates image color channels
|
static void |
combineByMask(MarvinImage imageA,
MarvinImage imageB,
MarvinImage imageOut,
int x,
int y,
java.awt.Color colorMask)
Combine two images considering a given color as transparency.
|
static void |
combineByTransparency(MarvinImage imageA,
MarvinImage imageB,
MarvinImage imageOut,
int x,
int y,
int transparency)
Combine two images having transparency.
|
static void |
convolution(MarvinImage imageIn,
MarvinImage imageOut,
double[][] matrix)
Convolution
|
static void |
crop(MarvinImage imageIn,
MarvinImage imageOut,
int x,
int y,
int width,
int height)
Image cropping
|
static void |
determineSceneBackground(java.util.List<MarvinImage> images,
MarvinImage imageOut,
int threshold)
Estimate the background from a set of images from the same scene.
|
static void |
emboss(MarvinImage imageIn,
MarvinImage imageOut)
Emboss filter
|
static void |
emboss(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Emboss filter
|
static java.util.List<MarvinSegment> |
findAllSubimages(MarvinImage subimage,
MarvinImage original)
Find instances of a given image in another image with perfect matching (exactly the same pixels value).
|
static java.util.List<MarvinSegment> |
findAllSubimages(MarvinImage subimage,
MarvinImage original,
double similarity)
Find instances of a given image in another image.
|
static MarvinSegment |
findSubimage(MarvinImage subimage,
MarvinImage original,
int startX,
int startY)
Find the first instance of a given image in another image.
|
static MarvinSegment |
findSubimage(MarvinImage subimage,
MarvinImage original,
int startX,
int startY,
double similarity)
Find the first instance of a given image in another image.
|
static java.util.List<MarvinSegment> |
findTextRegions(MarvinImage imageIn,
int maxWhiteSpace,
int maxFontLineWidth,
int minTextWidth,
int grayScaleThreshold)
Find text regions in a given image.
|
static void |
flipHorizontally(MarvinImage imageIn,
MarvinImage imageOut)
Flips the image horizontally
|
static void |
flipVertically(MarvinImage imageIn,
MarvinImage imageOut)
Flips the image vertically
|
static MarvinSegment[] |
floodfillSegmentation(MarvinImage imageIn) |
static MarvinBlobSegment[] |
floodfillSegmentationBlob(MarvinImage imageIn) |
static void |
gaussianBlur(MarvinImage imageIn,
MarvinImage imageOut,
int radius)
Gaussian blur filter
|
static void |
gaussianBlur(MarvinImage imageIn,
MarvinImage imageOut,
int radius,
MarvinImageMask mask)
Gaussian blur filter
|
static void |
grayScale(MarvinImage image)
Gray scale filter
|
static void |
grayScale(MarvinImage imageIn,
MarvinImage imageOut)
Gray scale filter
|
static void |
grayScale(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Gray scale filter
|
static void |
halftoneCircles(MarvinImage imageIn,
MarvinImage imageOut,
int circleWidth,
int shift,
int circlesDistance)
Image halftone using circles approach
|
static void |
halftoneCircles(MarvinImage imageIn,
MarvinImage imageOut,
int circleWidth,
int shift,
int circlesDistance,
MarvinImageMask mask)
Image halftone using circles approach
|
static void |
halftoneDithering(MarvinImage imageIn,
MarvinImage imageOut)
Image halftone using dithering approach
|
static void |
halftoneErrorDiffusion(MarvinImage imageIn,
MarvinImage imageOut)
Image halftone using error diffusion approach
|
static void |
halftoneRaylanders(MarvinImage imageIn,
MarvinImage imageOut)
Image halftone using raylander's approach
|
static void |
harrisCorner(MarvinImage imageIn,
int matrixSize,
int threshold,
double k)
Harris corner detector
|
static void |
histogramEqualization(MarvinImage imageIn,
MarvinImage imageOut)
Histogram based image equalization.
|
static void |
invertColors(MarvinImage image)
Inverts image colors.
|
static void |
invertColors(MarvinImage imageIn,
MarvinImage imageOut)
Inverts image colors.
|
static void |
invertColors(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Inverts image colors.
|
static void |
mergePhotos(java.util.List<MarvinImage> images,
MarvinImage imageOut,
int threshold)
Merge multiple photos from the same scene.
|
static int[][] |
moravec(MarvinImage imageIn,
MarvinImage imageOut,
int matrixSize,
int threshold)
Moravec corner detection
|
static void |
morphologicalBoundary(MarvinImage imageIn,
MarvinImage imageOut)
Morphological boundary operation
|
static void |
morphologicalBoundary(MarvinImage imageIn,
MarvinImage imageOut,
boolean[][] matrix)
Morphological boundary operation
|
static void |
morphologicalClosing(MarvinImage imageIn,
MarvinImage imageOut,
boolean[][] matrix)
Morphological closing operation
|
static void |
morphologicalDilation(MarvinImage imageIn,
MarvinImage imageOut,
boolean[][] matrix)
Morphological dilation operation
|
static void |
morphologicalErosion(MarvinImage imageIn,
MarvinImage imageOut,
boolean[][] matrix)
Morphological erosion operation
|
static void |
morphologicalOpening(MarvinImage imageIn,
MarvinImage imageOut,
boolean[][] matrix)
Morphological opening operation
|
static void |
mosaic(MarvinImage imageIn,
MarvinImage imageOut,
java.lang.String shape,
int width,
boolean border)
Mosaic artistic filter
|
static void |
pixelize(MarvinImage imageIn,
MarvinImage imageOut,
int squareSide) |
static void |
pixelize(MarvinImage imageIn,
MarvinImage imageOut,
int squareSide,
MarvinImageMask mask)
Pixelize filter
|
static void |
prewitt(MarvinImage imageIn,
MarvinImage imageOut) |
static void |
prewitt(MarvinImage imageIn,
MarvinImage imageOut,
double intensity) |
static void |
prewitt(MarvinImage imageIn,
MarvinImage imageOut,
double intensity,
MarvinImageMask mask)
Edge detection using prewitt approach
|
static void |
quantizationGrayScale(MarvinImage imageIn,
MarvinImage imageOut,
int shades)
Gray scale color quantization
|
static void |
roberts(MarvinImage imageIn,
MarvinImage imageOut)
Edge detection using roberts approach
|
static void |
roberts(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Edge detection using roberts approach
|
static void |
scale(MarvinImage imageIn,
MarvinImage imageOut,
int width)
Scale image.
|
static void |
scale(MarvinImage imageIn,
MarvinImage imageOut,
int width,
int height)
Scale image.
|
static void |
sepia(MarvinImage image,
int intensity)
Sepia filter
|
static void |
sepia(MarvinImage imageIn,
MarvinImage imageOut,
int intensity)
Sepia filter
|
static void |
sepia(MarvinImage imageIn,
MarvinImage imageOut,
int intensity,
MarvinImageMask mask)
Sepia filter
|
static void |
skinColorDetection(MarvinImage image)
Human skin color filter.
|
static void |
skinColorDetection(MarvinImage imageIn,
MarvinImage imageOut)
Human skin color filter.
|
static void |
skinColorDetection(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Human skin color filter.
|
static void |
sobel(MarvinImage imageIn,
MarvinImage imageOut)
Edge detection using sobel approach
|
static void |
sobel(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Edge detection using sobel approach
|
static void |
susanCorner(MarvinImage imageIn,
int matrixSize,
int threshold)
Corner detection using susan approach
|
static void |
television(MarvinImage image)
Television artisic filter
|
static void |
television(MarvinImage imageIn,
MarvinImage imageOut)
Television artisic filter
|
static void |
television(MarvinImage imageIn,
MarvinImage imageOut,
MarvinImageMask mask)
Television artisic filter
|
static void |
thresholding(MarvinImage image,
int threshold)
Converts pixels to black and white given a threshold
|
static void |
thresholding(MarvinImage image,
int threshold,
int thresholdRange)
Converts pixels to black and white given a threshold
|
static void |
thresholding(MarvinImage imageIn,
MarvinImage imageOut,
int threshold)
Converts pixels to black and white given a threshold
|
static void |
thresholding(MarvinImage imageIn,
MarvinImage imageOut,
int threshold,
int thresholdRange)
Converts pixels to black and white given a threshold
|
static void |
thresholding(MarvinImage imageIn,
MarvinImage imageOut,
int threshold,
int thresholdRange,
MarvinImageMask mask)
Converts pixels to black and white given a threshold
|
static void |
thresholdingNeighborhood(MarvinImage imageIn,
MarvinImage imageOut,
double thresholdPercentageOfAverage,
int neighborhoodSide,
int samplingPixelDistance)
Converts pixels to black and white considering a threshold to the average intensity of pixel neighbors
|
static void |
thumbnailByHeight(MarvinImage imageIn,
MarvinImage imageOut,
int newHeight) |
static void |
thumbnailByWidth(MarvinImage imageIn,
MarvinImage imageOut,
int newWidth) |
static int[][] |
watershed(MarvinImage imageIn)
Watershed transform
|
public static void alphaBoundary(MarvinImage imageIn, int radius)
imageIn
- input imageradius
- transparency radiuspublic static void alphaBoundary(MarvinImage imageIn, MarvinImage imageOut, int radius)
imageIn
- input imageimageOut
- output imageradius
- transparency radiuspublic static void blackAndWhite(MarvinImage image, int level)
imageIn
- input imagelevel
- black and white levelpublic static void blackAndWhite(MarvinImage imageIn, MarvinImage imageOut, int level)
imageIn
- input imageimageOut
- output imagelevel
- black and white levelpublic static void blackAndWhite(MarvinImage imageIn, MarvinImage imageOut, int level, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagelevel
- black and white levelmask
- pixel maskpublic static void boundaryFill(MarvinImage imageIn, MarvinImage imageOut, int x, int y, java.awt.Color color)
imageIn
- input imageimageOut
- output imagex
- fill start Xy
- fill start Ycolor
- colorpublic static void boundaryFill(MarvinImage imageIn, MarvinImage imageOut, int x, int y, java.awt.Color color, int threshold)
imageIn
- input imageimageOut
- output imagex
- fill start Xy
- fill start Ycolor
- colorthreshold
- accepted threshold to the specified color.public static void boundaryFill(MarvinImage imageIn, MarvinImage imageOut, int x, int y, java.awt.Color color, MarvinImage tile, int threshold)
imageIn
- input imageimageOut
- output imagex
- fill start Xy
- fill start Ycolor
- colortile
- tile image for texture based fillingthreshold
- accepted threshold to the specified color.public static void brightnessAndContrast(MarvinImage image, int brightness, int contrast)
imageIn
- input imagebrightness
- brightness variation [-127, 127]contrast
- contrast variation [-127, 127]public static void brightnessAndContrast(MarvinImage imageIn, MarvinImage imageOut, int brightness, int contrast)
imageIn
- input imageimageOut
- output imagebrightness
- brightness variation [-127, 127]contrast
- contrast variation [-127, 127]public static void brightnessAndContrast(MarvinImage imageIn, MarvinImage imageOut, int brightness, int contrast, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagebrightness
- brightness variation [-127, 127]contrast
- contrast variation [-127, 127]mask
- pixel maskpublic static void combineByMask(MarvinImage imageA, MarvinImage imageB, MarvinImage imageOut, int x, int y, java.awt.Color colorMask)
imageA
- input image AimageB
- input image BimageOut
- output imagex
- position x of image B on image Ay
- position y of image B on image AcolorMask
- Transparent colorpublic static void combineByTransparency(MarvinImage imageA, MarvinImage imageB, MarvinImage imageOut, int x, int y, int transparency)
imageA
- input image AimageB
- input image BimageOut
- output imagex
- position x of image B on image Ay
- position y of image B on image Atransparency
- public static void convolution(MarvinImage imageIn, MarvinImage imageOut, double[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- convolution matrixpublic static void colorChannel(MarvinImage image, int red, int green, int blue)
imageIn
- input imagered
- red manipulation [-100, 100]green
- green manipulation [-100, 100]blue
- blue manipulation [-100, 100]public static void colorChannel(MarvinImage imageIn, MarvinImage imageOut, int red, int green, int blue)
imageIn
- input imageimageOut
- output imagered
- red manipulation [-100, 100]green
- green manipulation [-100, 100]blue
- blue manipulation [-100, 100]public static void colorChannel(MarvinImage imageIn, MarvinImage imageOut, int red, int green, int blue, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagered
- red manipulation [-100, 100]green
- green manipulation [-100, 100]blue
- blue manipulation [-100, 100]mask
- pixel maskpublic static void crop(MarvinImage imageIn, MarvinImage imageOut, int x, int y, int width, int height)
imageIn
- input imageimageOut
- output imagex
- subimage xy
- subimage ywidth
- subimage widthheight
- subimage heightpublic static void determineSceneBackground(java.util.List<MarvinImage> images, MarvinImage imageOut, int threshold)
images
- list of images from the same sceneimageOut
- estimated backgroundthreshold
- threshold considered by the pixel comparison.public static java.util.List<MarvinSegment> findAllSubimages(MarvinImage subimage, MarvinImage original)
subimage
- image to be foundoriginal
- input imagepublic static java.util.List<MarvinSegment> findAllSubimages(MarvinImage subimage, MarvinImage original, double similarity)
subimage
- image to be foundoriginal
- input imagesimilarity
- match percentage [0.0, 1.0]public static MarvinSegment findSubimage(MarvinImage subimage, MarvinImage original, int startX, int startY)
subimage
- image to be foundoriginal
- input imagestartX
- search start xstartY
- search start ypublic static MarvinSegment findSubimage(MarvinImage subimage, MarvinImage original, int startX, int startY, double similarity)
subimage
- image to be foundoriginal
- input imagestartX
- search start xstartY
- search start ysimilarity
- match percentage [0.0, 1.0]public static java.util.List<MarvinSegment> findTextRegions(MarvinImage imageIn, int maxWhiteSpace, int maxFontLineWidth, int minTextWidth, int grayScaleThreshold)
imageIn
- input imagemaxWhiteSpace
- max number of white pixels in the text patternmaxFontLineWidth
- max number of black pixels in the text patternminTextWidth
- min text width in pixelsgrayScaleThreshold
- gray scale threshold for conveting image to black and whitepublic static void emboss(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void emboss(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void flipHorizontally(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void flipVertically(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static MarvinSegment[] floodfillSegmentation(MarvinImage imageIn)
public static MarvinBlobSegment[] floodfillSegmentationBlob(MarvinImage imageIn)
public static void gaussianBlur(MarvinImage imageIn, MarvinImage imageOut, int radius)
imageIn
- input imageimageOut
- output imageradius
- blur radiuspublic static void gaussianBlur(MarvinImage imageIn, MarvinImage imageOut, int radius, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imageradius
- blur radiusmask
- pixel maskpublic static void grayScale(MarvinImage image)
imageIn
- input imagepublic static void grayScale(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void grayScale(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void halftoneCircles(MarvinImage imageIn, MarvinImage imageOut, int circleWidth, int shift, int circlesDistance, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagecircleWidth
- circle max widthshift
- circle shiftcirclesDistance
- circles minimum distancemask
- pixel maskpublic static void halftoneCircles(MarvinImage imageIn, MarvinImage imageOut, int circleWidth, int shift, int circlesDistance)
imageIn
- input imageimageOut
- output imagecircleWidth
- circle max widthshift
- circle shiftcirclesDistance
- circles minimum distancepublic static void halftoneDithering(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void halftoneErrorDiffusion(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void halftoneRaylanders(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void harrisCorner(MarvinImage imageIn, int matrixSize, int threshold, double k)
imageIn
- input imagematrixSize
- matrix sizethreshold
- corners estimation thresholdk
- param kpublic static void histogramEqualization(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void invertColors(MarvinImage image)
imageIn
- input imagepublic static void invertColors(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void invertColors(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void mergePhotos(java.util.List<MarvinImage> images, MarvinImage imageOut, int threshold)
images
- input imageimageOut
- output imagethreshold
- threshold considering in pixel comparison.public static int[][] moravec(MarvinImage imageIn, MarvinImage imageOut, int matrixSize, int threshold)
imageIn
- input imageimageOut
- output imagematrixSize
- matrix sizethreshold
- corners estimation thresholdpublic static void morphologicalBoundary(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void morphologicalBoundary(MarvinImage imageIn, MarvinImage imageOut, boolean[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- operation matrix.public static void morphologicalClosing(MarvinImage imageIn, MarvinImage imageOut, boolean[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- matrixpublic static void morphologicalDilation(MarvinImage imageIn, MarvinImage imageOut, boolean[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- matrixpublic static void morphologicalErosion(MarvinImage imageIn, MarvinImage imageOut, boolean[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- matrixpublic static void morphologicalOpening(MarvinImage imageIn, MarvinImage imageOut, boolean[][] matrix)
imageIn
- input imageimageOut
- output imagematrix
- matrixpublic static void mosaic(MarvinImage imageIn, MarvinImage imageOut, java.lang.String shape, int width, boolean border)
imageIn
- input imageimageOut
- output imageshape
- shape ("squares", "triangles")width
- mosaic widthborder
- has border?public static void pixelize(MarvinImage imageIn, MarvinImage imageOut, int squareSide)
public static void pixelize(MarvinImage imageIn, MarvinImage imageOut, int squareSide, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagesquareSide
- square sidemask
- pixel maskpublic static void prewitt(MarvinImage imageIn, MarvinImage imageOut)
public static void prewitt(MarvinImage imageIn, MarvinImage imageOut, double intensity)
public static void prewitt(MarvinImage imageIn, MarvinImage imageOut, double intensity, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imageintensity
- edge intensitymask
- pixel maskpublic static void quantizationGrayScale(MarvinImage imageIn, MarvinImage imageOut, int shades)
imageIn
- input imageimageOut
- output imageshades
- number of shades of graypublic static void roberts(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void roberts(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void scale(MarvinImage imageIn, MarvinImage imageOut, int width, int height)
imageIn
- input imageimageOut
- output imagewidth
- new widthheight
- new heightpublic static void scale(MarvinImage imageIn, MarvinImage imageOut, int width)
imageIn
- input imageimageOut
- output imagewidth
- new width. Height is set to be proportional to the original image aspect.public static void sepia(MarvinImage image, int intensity)
imageIn
- input imageintensity
- filter intensitypublic static void sepia(MarvinImage imageIn, MarvinImage imageOut, int intensity)
imageIn
- input imageimageOut
- output imageintensity
- filter intensitypublic static void sepia(MarvinImage imageIn, MarvinImage imageOut, int intensity, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imageintensity
- filter intensitymask
- pixel mask.public static void sobel(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void sobel(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void skinColorDetection(MarvinImage image)
imageIn
- input imagepublic static void skinColorDetection(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void skinColorDetection(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void susanCorner(MarvinImage imageIn, int matrixSize, int threshold)
imageIn
- input imagematrixSize
- matrix sizethreshold
- corner estimation thresholdpublic static void television(MarvinImage image)
imageIn
- input imagepublic static void television(MarvinImage imageIn, MarvinImage imageOut)
imageIn
- input imageimageOut
- output imagepublic static void television(MarvinImage imageIn, MarvinImage imageOut, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagemask
- pixel maskpublic static void thresholding(MarvinImage image, int threshold)
imageIn
- input imagethreshold
- thresholdpublic static void thresholding(MarvinImage image, int threshold, int thresholdRange)
imageIn
- input imagethreshold
- thresholdthresholdRange
- threshold values rangepublic static void thresholding(MarvinImage imageIn, MarvinImage imageOut, int threshold)
imageIn
- input imageimageOut
- output imagethreshold
- thresholdpublic static void thresholding(MarvinImage imageIn, MarvinImage imageOut, int threshold, int thresholdRange)
imageIn
- input imageimageOut
- output imagethreshold
- thresholdthresholdRange
- threshold values rangepublic static void thresholding(MarvinImage imageIn, MarvinImage imageOut, int threshold, int thresholdRange, MarvinImageMask mask)
imageIn
- input imageimageOut
- output imagethreshold
- thresholdthresholdRange
- threshold values rangemask
- pixel maskpublic static void thresholdingNeighborhood(MarvinImage imageIn, MarvinImage imageOut, double thresholdPercentageOfAverage, int neighborhoodSide, int samplingPixelDistance)
imageIn
- input imageimageOut
- output imagethresholdPercentageOfAverage
- threshold percentage of average intensity [0, 1.0]neighborhoodSide
- side of the neighborhood squaresamplingPixelDistance
- 1 to process every pixel, higher values to skip pixels in the sampling process.public static void thumbnailByWidth(MarvinImage imageIn, MarvinImage imageOut, int newWidth)
public static void thumbnailByHeight(MarvinImage imageIn, MarvinImage imageOut, int newHeight)
public static int[][] watershed(MarvinImage imageIn)
imageIn
- input image