public class DiskImageTools
extends java.lang.Object
Constructor and Description |
---|
DiskImageTools() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
createCorrectedImage(java.awt.image.BufferedImage source,
EllipseParameters inner,
EllipseParameters outer,
double startedAngle,
int resultWidth,
int resultHeight,
int heightOfTheInnerEllipse)
create a corrected image of the disk
|
static java.awt.image.BufferedImage |
createCorrectedImage(java.awt.image.BufferedImage source,
java.awt.geom.Point2D.Double center,
EllipseParameters cp,
double startedAngle,
int resultWidth,
int resultHeight)
create a corrected image of the disk
|
static MathVect |
interpolateBetween2Ellipse(EllipseParameters exterior,
EllipseParameters interior,
double angle,
double ratio)
interpolate between 2 ellipses
|
static void |
main(java.lang.String[] args) |
public static MathVect interpolateBetween2Ellipse(EllipseParameters exterior, EllipseParameters interior, double angle, double ratio)
exterior
- interior
- angle
- ratio
- 0 it is on the inner ellipse, 1 on the outerpublic static java.awt.image.BufferedImage createCorrectedImage(java.awt.image.BufferedImage source, EllipseParameters inner, EllipseParameters outer, double startedAngle, int resultWidth, int resultHeight, int heightOfTheInnerEllipse) throws java.lang.Exception
source
- the image sourcecenter
- the center of the diskcp
- the parameters of the disk perimeters (ellipse for more
precision)startAngle
- the angle of the beginning of the diskjava.lang.Exception
public static java.awt.image.BufferedImage createCorrectedImage(java.awt.image.BufferedImage source, java.awt.geom.Point2D.Double center, EllipseParameters cp, double startedAngle, int resultWidth, int resultHeight) throws java.lang.Exception
source
- the image sourcecenter
- the center of the diskcp
- the parameters of the disk perimeters (ellipse for more
precision)startAngle
- the angle of the beginning of the diskjava.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception