public class ImageProcessorPlus extends Object
Check extendImageBeforeRotation(ImageProcessor, double)
for possible problems
Constructor and Description |
---|
ImageProcessorPlus()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
ij.process.ImageProcessor |
crop(ij.process.ImageProcessor ip,
int luX,
int luY,
int width,
int height)
Crop image.
|
ij.process.ImageProcessor |
cropImageAfterRotation(ij.process.ImageProcessor ip,
int width,
int height)
Crop image.
|
ij.process.ImageProcessor |
extendImageBeforeRotation(ij.process.ImageProcessor ip,
double angle)
Add borders around image to prevent cropping during rotating.
|
ij.process.ImageProcessor |
rotate(ij.process.ImageProcessor ip,
double angle,
boolean addBorders)
Rotate image by specified angle keeping correct rotation direction.
|
void |
runningMean(ij.process.ImageProcessor ip,
String prefilterangle,
int masksize)
Perform running mean on image using convolution.
|
public ij.process.ImageProcessor extendImageBeforeRotation(ij.process.ImageProcessor ip, double angle)
Warning
Replaces original image and may not preserve all its attributes
ip
- ImageProcessor to be extendedangle
- Angle to be image rotatedpublic ij.process.ImageProcessor rotate(ij.process.ImageProcessor ip, double angle, boolean addBorders)
ip
- ImageProcessor to be rotatedangle
- Angle of rotation in anti-clockwise directionaddBorders
- if true rotates with extension, false use standard rotation with clippingpublic ij.process.ImageProcessor crop(ij.process.ImageProcessor ip, int luX, int luY, int width, int height)
Warning
Modifies current object
ip
- ImageProcessor to be croppedluX
- Left upper corner x coordinateluY
- Left upper corner y coordinatewidth
- Width of clipped areaheight
- Height of clipped areapublic ij.process.ImageProcessor cropImageAfterRotation(ij.process.ImageProcessor ip, int width, int height)
Warning
Modifies current object Designed to use with cooperation with extendImageBeforeRotation(ImageProcessor,double).
Assumes that cropping area is centered in source image
ip
- ImageProcessor to be croppedwidth
- Width of clipped areaheight
- Height of clipped areapublic void runningMean(ij.process.ImageProcessor ip, String prefilterangle, int masksize)
ip
- ImageProcessorprefilterangle
- angle as k*45masksize
- odd size, 0 will skip processingImageProcessorPlus.GenerateKernel
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.