|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.filter.AbstractFilter<T>
adams.data.filter.AbstractPreFilter<Heatmap>
adams.data.filter.CropToCentroid
public class CropToCentroid
Generates a cropped heatmap centered around the centroid calculated on the pre-filtered data.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-filter <adams.data.filter.AbstractFilter> (property: filter) Pre-filters the data, . default: adams.data.filter.Threshold
-height <int> (property: height) The height of the cropped region. default: 240 minimum: 1
-width <int> (property: width) The width of the cropped region. default: 320 minimum: 1
-centroid <adams.data.filter.Centroid> (property: centroid) The centroid filter to use. default: adams.data.filter.Centroid
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.data.filter.AbstractFilter |
|---|
AbstractFilter.FilterJob<T extends DataContainer> |
| Field Summary | |
|---|---|
static String |
CROP_BOTTOM
the bottom coordinate of the crop in the original heatmap. |
static String |
CROP_LEFT
the left coordinate of the crop in the original heatmap. |
static String |
CROP_RIGHT
the right coordinate of the crop in the original heatmap. |
static String |
CROP_TOP
the right coordinate of the crop in the original heatmap. |
protected Centroid |
m_Centroid
the centroid filter. |
protected int |
m_Height
the height of the crop region around the centroid. |
protected int |
m_Width
the width of the crop region around the centroid. |
| Fields inherited from class adams.data.filter.AbstractPreFilter |
|---|
m_Filter |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
CropToCentroid()
|
|
| Method Summary | |
|---|---|
String |
centroidTipText()
Returns the tip text for this property. |
static Heatmap |
crop(Heatmap original,
int centroidY,
int centroidX,
int height,
int width)
Crops the heatmap around the centroid stored in the heatmap's report. |
void |
defineOptions()
Adds options to the internal list of options. |
Centroid |
getCentroid()
Returns the centroid filter. |
protected AbstractFilter |
getDefaultFilter()
Returns the default pre-filter to use. |
int |
getHeight()
Returns the height start the submap from. |
int |
getWidth()
Returns the width start the submap from. |
String |
globalInfo()
Returns a string describing the object. |
String |
heightTipText()
Returns the tip text for this property. |
protected Heatmap |
processData(Heatmap filtered,
Heatmap original)
Performs the actual filtering, using the pre-filtered data to manipulate the original data. |
void |
setCentroid(Centroid value)
Sets the centroid filter. |
void |
setHeight(int value)
Sets the height of the submap. |
void |
setWidth(int value)
Sets the width of the submap. |
String |
widthTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.filter.AbstractPreFilter |
|---|
filterTipText, getFilter, processData, setFilter |
| Methods inherited from class adams.data.filter.AbstractFilter |
|---|
checkData, cleanUp, compareTo, destroy, equals, filter, filter, filter, filter, filter, forCommandLine, forName, getFilters, reset, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CROP_LEFT
public static final String CROP_TOP
public static final String CROP_RIGHT
public static final String CROP_BOTTOM
protected int m_Height
protected int m_Width
protected Centroid m_Centroid
| Constructor Detail |
|---|
public CropToCentroid()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractPreFilter<Heatmap>public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractPreFilter<Heatmap>protected AbstractFilter getDefaultFilter()
getDefaultFilter in class AbstractPreFilter<Heatmap>public void setHeight(int value)
value - the heightpublic int getHeight()
public String heightTipText()
public void setWidth(int value)
value - the widthpublic int getWidth()
public String widthTipText()
public void setCentroid(Centroid value)
value - the filterpublic Centroid getCentroid()
public String centroidTipText()
protected Heatmap processData(Heatmap filtered,
Heatmap original)
processData in class AbstractPreFilter<Heatmap>filtered - the pref-filtered dataoriginal - the original input data
public static Heatmap crop(Heatmap original,
int centroidY,
int centroidX,
int height,
int width)
original - the heatmap, with the centroid informationcentroidY - the Y position of the centroidcentroidX - the X position of the centroidheight - the new height of the heatmapwidth - the new width of the heatmap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||