public class VisualizeGeodesicDistances extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
static class |
VisualizeGeodesicDistances.Mode
Visualization mode.
|
static class |
VisualizeGeodesicDistances.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
height
Image size.
|
private static Logging |
LOG
Get a logger for this class.
|
private VisualizeGeodesicDistances.Mode |
mode
Visualization mode
|
private File |
out
Holds the file to print results to.
|
protected int |
steps
Number of steps for shades.
|
(package private) int |
width
Image size.
|
INFORMATION
Constructor and Description |
---|
VisualizeGeodesicDistances(File out,
int steps,
VisualizeGeodesicDistances.Mode mode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
colorMultiply(int col,
double reldist,
boolean ceil) |
static void |
main(String[] args)
Main method for application.
|
void |
run()
Runs the application.
|
printErrorMessage, runCLIApplication, usage
private static final Logging LOG
private File out
final int width
final int height
protected int steps
private VisualizeGeodesicDistances.Mode mode
public VisualizeGeodesicDistances(File out, int steps, VisualizeGeodesicDistances.Mode mode)
out
- Output filenamesteps
- Number of steps in the color mapmode
- Visualization modepublic void run() throws UnableToComplyException
AbstractApplication
run
in class AbstractApplication
UnableToComplyException
- if an error occurs during running the
applicationprivate int colorMultiply(int col, double reldist, boolean ceil)
public static void main(String[] args)
args
- Parameters