edu.jhu.cs.cisst.algorithms.optimize.fmg
Class DefaultSolverResolutionLevels3D

java.lang.Object
  extended by edu.jhu.cs.cisst.algorithms.optimize.fmg.DefaultSolverResolutionLevels3D
All Implemented Interfaces:
SolverResolutionLevels

public class DefaultSolverResolutionLevels3D
extends java.lang.Object
implements SolverResolutionLevels

The Class DefaultSolverResolutionLevels3D describes a set of solver resolutions.


Field Summary
protected  double[] gridSizes
          The grid sizes.
protected  int[][] resolutions
          The resolutions.
 
Constructor Summary
DefaultSolverResolutionLevels3D(ConstGrid grid, int minSize, int numResolutions)
          Instantiates a new solver resolutions.
 
Method Summary
 double getGridSpacing(int i)
          Gets the grid spacing.
 int[] getResolution(int i)
          Gets the resolution.
 int getResolutionCount()
          Gets the resolution count.
 int[][] getResolutions()
          Gets the resolutions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resolutions

protected int[][] resolutions
The resolutions.


gridSizes

protected double[] gridSizes
The grid sizes.

Constructor Detail

DefaultSolverResolutionLevels3D

public DefaultSolverResolutionLevels3D(ConstGrid grid,
                                       int minSize,
                                       int numResolutions)
Instantiates a new solver resolutions.

Parameters:
grid - the grid
minSize - the min grid size
numResolutions - the number of resolutions
Method Detail

getResolution

public int[] getResolution(int i)
Description copied from interface: SolverResolutionLevels
Gets the resolution.

Specified by:
getResolution in interface SolverResolutionLevels
Parameters:
i - the i
Returns:
the resolution
See Also:
SolverResolutionLevels.getResolution(int)

getResolutionCount

public int getResolutionCount()
Description copied from interface: SolverResolutionLevels
Gets the resolution count.

Specified by:
getResolutionCount in interface SolverResolutionLevels
Returns:
the resolution count
See Also:
SolverResolutionLevels.getResolutionCount()

getResolutions

public int[][] getResolutions()
Description copied from interface: SolverResolutionLevels
Gets the resolutions.

Specified by:
getResolutions in interface SolverResolutionLevels
Returns:
the resolutions
See Also:
SolverResolutionLevels.getResolutions()

getGridSpacing

public double getGridSpacing(int i)
Description copied from interface: SolverResolutionLevels
Gets the grid spacing.

Specified by:
getGridSpacing in interface SolverResolutionLevels
Parameters:
i - the i
Returns:
the grid spacing
See Also:
SolverResolutionLevels.getGridSpacing(int)