|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.utils.ImageGenerator
ImageGenerator is a class that builds various images. ImageGenerator
supports command line options. All the methods are static.
|
|
||
|
|
|
|
| Uniform | -uniform <X> <Y> <color> <output file> | <X>
width (integer value)
<Y> height (integer value) <orientation> -h for horizonal, -v for vertical <std dev> standard deviation <frequency> frequency <color*> color (integer 0..255) <direction> -a for ascending, -d for descending <output file> File to output to <phase> phase in degrees <mean x> mean x value <mean y> mean y value |
| Ramp | -ramp <X> <Y> <orientation> <direction> <output file> | |
| Gaussian | -gaussian <X> <Y> <mean x> <mean y> <std dev> <output file> | |
| Sinusoidal | -sinusoid <X> <Y> <orientation> <frequency> <phase> <output file> | |
| Stripes | -stripes <X> <Y> <color1> <color2> <orientation> <frequency> <output file> | |
| java ImageGenerator
-uniform 250 300 45 D:\pictures\test1.pgm
java ImageGenerator
-ramp 250 300 -h -a D:\pictures\test1.pgm
java ImageGenerator -sinusoid 250 300 -v 45 45 D:\pictures\test1.pgm java ImageGenerator -stripes 250 300 0 255 -h 34 D:\pictures\test1.pgm |
| Field Summary | |
static int |
ASCENDING
Ascending Direction |
static int |
DESCENDING
Descending Direction |
static int |
HORIZONTAL
Horizonal Orientation |
private static String[] |
param
Commandline parameters |
private static double |
PI
Constant PI in Math |
static int |
VERTICAL
Verticle Orientation |
| Constructor Summary | |
ImageGenerator()
|
|
| Method Summary | |
static ComplexImage |
buildGaussInFreqDomain(float sigma,
int nx,
int ny,
int order_x,
int order_y,
boolean debug)
Build a Gaussian image in frequency domain with standard deviation sigma,
width nx and height ny. |
static ComplexImage |
buildLinearFilter(float sigma,
int nx,
int ny,
int order_x,
int order_y,
boolean debug)
Build a linear filter in frequency domain (Gaussian). |
private static RealGrayImage |
gaussian_parse()
|
static RealGrayImage |
gaussian(int X,
int Y,
float x0,
float y0,
float std)
Returns a RealGray gaussian image |
static void |
main(String[] argv)
For commandline options. |
static RealGrayImage |
ngaussian(int X,
int Y,
float x0,
float y0,
float std)
Build a Gaussian function in space domain with range[0.0 .. |
private static RealGrayImage |
ramp_parse()
Returns a RealGray ramp image. |
static RealGrayImage |
ramp(int X,
int Y,
int orientation,
int direction)
Returns a RealGray ramp image |
private static RealGrayImage |
sinusoid_parse()
Returns a RealGray sinusoidal image. |
static RealGrayImage |
sinusoid(int X,
int Y,
int orientation,
float frequency,
float phase)
Returns a RealGray sinusoidal image |
private static RealGrayImage |
stripes_parse()
Return a RealGray stripe image |
static RealGrayImage |
stripes(int X,
int Y,
float color1,
float color2,
int orientation,
int frequency)
Returns a RealGray stripe image |
private static RealGrayImage |
uniform_parse()
Return a uniform RealGrayImage image. |
static RealGrayImage |
uniform(int X,
int Y,
float color)
Returns a RealGray uniform image |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int VERTICAL
public static final int HORIZONTAL
public static final int ASCENDING
public static final int DESCENDING
private static String[] param
private static double PI
| Constructor Detail |
public ImageGenerator()
| Method Detail |
public static void main(String[] argv)
GrayImage -> PGM file
RealGrayImage -> PRGM file
ColorImage -> PPM file
RealColorImage -> PRCM file
ComplexImage -> PPM file
private static RealGrayImage uniform_parse()
public static RealGrayImage uniform(int X,
int Y,
float color)
X - width of the imageY - height of the imagecolor - the grayscale of the image
private static RealGrayImage stripes_parse()
throws InvalidCommandLineException
InvalidCommandLineException
public static RealGrayImage stripes(int X,
int Y,
float color1,
float color2,
int orientation,
int frequency)
X - width of the imageY - height of the imagecolor1 - the first colorcolor2 - the second colororientation - eithier horizonal or verticlefrequency - the frequency of the square waveVERTICAL,
HORIZONTAL
private static RealGrayImage ramp_parse()
throws InvalidCommandLineException
InvalidCommandLineException
public static RealGrayImage ramp(int X,
int Y,
int orientation,
int direction)
X - width of the imageY - height of the imageorientation - eithier verticle or horizonaldirection - eithier ascending or descendingVERTICAL,
HORIZONTAL,
ASCENDING,
DESCENDINGprivate static RealGrayImage gaussian_parse()
public static RealGrayImage gaussian(int X,
int Y,
float x0,
float y0,
float std)
X - width of the imageY - height of the imagex0 - x coordiant of the meany0 - y cooridant of the meanstd - standard deviation
public static ComplexImage buildGaussInFreqDomain(float sigma,
int nx,
int ny,
int order_x,
int order_y,
boolean debug)
sigma,
width nx and height ny.
sigma - the standard deviationnx - the width of the imageny - the height of the image
public static ComplexImage buildLinearFilter(float sigma,
int nx,
int ny,
int order_x,
int order_y,
boolean debug)
sigma - the standard deviationnx - the width of the imageny - the height of the image
public static RealGrayImage ngaussian(int X,
int Y,
float x0,
float y0,
float std)
x0=X/2 and y0= Y/2, the Gaussian image is center-symmetric.
x0 - center position in x direction.y0 - center position in y direction
private static RealGrayImage sinusoid_parse()
throws InvalidCommandLineException
InvalidCommandLineException
public static RealGrayImage sinusoid(int X,
int Y,
int orientation,
float frequency,
float phase)
X - width of the imageY - height of the imageorientation - eithier horizonal or verticlefrequency - the frequency of the wavephase - the phase of the wave in degreesVERTICAL,
HORIZONTAL
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||