|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageFunction
Abstract image function (R2 -> RN mapping).
ImageSynthesizer
Field Summary | |
---|---|
static java.lang.String |
BACKGROUND_COLOR
Property name: background-color ( double[3] ). |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
double[] |
getBounds(double[] pre)
Returns actual bounds for [ x, y ] (projection-plane coordinates). |
long |
getSample(double x,
double y,
double[] color)
Computes one image sample. |
long |
getSample(double x,
double y,
int order,
int total,
double[] color)
Computes one image sample. |
void |
setBounds(double Xmin,
double Xmax,
double Ymin,
double Ymax)
Sets bounds (scaling factors) for the image function (e.g. projection-plane mapping). |
Methods inherited from interface cz.cuni.jagrlib.iface.TimeDependent |
---|
getTime, getTimeInterval, setTime |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
static final java.lang.String BACKGROUND_COLOR
double[3]
).
Method Detail |
---|
void setBounds(double Xmin, double Xmax, double Ymin, double Ymax)
Xmin
- Minimum X coordinate.Xmax
- Maximum X coordinate.Ymin
- Minimum Y coordinate.Ymax
- Maximum Y coordinate.getBounds(double[])
double[] getBounds(double[] pre)
[ x, y ]
(projection-plane coordinates).
pre
- Pre-allocated (non-mandatory) double[4]
array to hold results:
pre[0]
.. Xmin, pre[1]
.. Xmax,
pre[2]
.. Ymin, pre[3]
.. Ymax.
setBounds(double, double, double, double)
,
TimeDependent.getTimeInterval(double[])
long getSample(double x, double y, double[] color)
x
- X coordinate of the sample.y
- Y coordinate of the sample.color
- Pre-allocated array to hold result color vector (double[1]
for monochrome images, double[3]
for RGB images,
larger arrays can be used for more complex spectral sampling).
getSample(double,double,int,int,double[])
,
getBounds(double[])
long getSample(double x, double y, int order, int total, double[] color)
x
- X coordinate of the sample.y
- Y coordinate of the sample.order
- Order of this sample inside the actual pixel.total
- Total number of samples in the actual pixel.color
- Pre-allocated array to hold result color vector (double[1]
for monochrome images, double[3]
for RGB images,
larger arrays can be used for more complex spectral sampling).
getSample(double,double,double[])
,
getBounds(double[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |