Package gov.nih.mipav.model.structures
Class ModelHistogram
- java.lang.Object
-
- gov.nih.mipav.model.structures.ModelSerialCloneable
-
- gov.nih.mipav.model.structures.ModelStorageBase
-
- gov.nih.mipav.model.structures.ModelHistogram
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class ModelHistogram extends ModelStorageBase
Histogram model extends ModelStorageBase and stores and processes information about histograms.- Version:
- 0.1 Oct 1, 1997
- Author:
- Matthew J. McAuliffe, Ph.D.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.model.structures.ModelStorageBase
ModelStorageBase.DataType
-
-
Field Summary
Fields Modifier and Type Field Description private int
endRange
DOCUMENT ME!private java.util.Vector<java.awt.Frame>
histogramFrameVector
DOCUMENT ME!private int
maxEntropyThreshold
DOCUMENT ME!private double
mean
DOCUMENT ME!private int
mode
DOCUMENT ME!private int
otsuThreshold
DOCUMENT ME!private static long
serialVersionUID
Use serialVersionUID for interoperability.private int
stRange
DOCUMENT ME!private int
totalPixels
DOCUMENT ME!-
Fields inherited from class gov.nih.mipav.model.structures.ModelStorageBase
ARGB, ARGB_FLOAT, ARGB_FLOAT_STRING, ARGB_STRING, ARGB_UINTEGER, ARGB_UINTEGER_STRING, ARGB_USHORT, ARGB_USHORT_STRING, BOOLEAN, BOOLEAN_STRING, bufferTypeStr, BYTE, BYTE_STRING, COMPLEX, COMPLEX_STRING, DCOMPLEX, DCOMPLEX_STRING, DOUBLE, DOUBLE_STRING, fileInfo, FLOAT, FLOAT_STRING, INTEGER, INTEGER_STRING, lastMax, lastMin, LINEAR, logMagDisp, LONG, LONG_STRING, NEAREST, RW_LOCKED, SHORT, SHORT_STRING, TAYLOR, UBYTE, UBYTE_STRING, UINTEGER, UINTEGER_STRING, UNLOCKED, USHORT, USHORT_STRING, W_LOCKED
-
-
Constructor Summary
Constructors Constructor Description ModelHistogram(int type, int[] dimExtents)
ModelHistogram.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEndRange()
Gets the starting range of pixels.int
getMaxEntropyThreshold()
Gets the maximum entropy threshold.double
getMean()
Gets the mean pixel intensity.int
getMode()
Gets the mode of the pixel intensities.int
getOtsuThreshold()
Gets the otsu threshold as calculated in AlgorithmThreshold.int
getStartRange()
Gets the starting range of pixels.int
getTotalPixels()
Gets the total pixel count.void
registerFrame(java.awt.Frame frame)
Registers the image Frame.void
setEndRange(int end)
Sets the ending range of histogram.void
setMaxEntropyThreshold(int thres)
Sets maximum entropy threshold.void
setMean(double mean)
Sets mean intensity of histogram.void
setMode(int mode)
Sets the mode intensity of histogram.void
setOtsuThreshold(int otsu)
Sets the Otsu threshold.void
setStartRange(int start)
Sets the starting range of histogram.void
setTotalPixels(int pixels)
Sets total number of pixels of histogram.void
unregisterFrame(java.awt.Frame frame)
Unregisters the image Frame.-
Methods inherited from class gov.nih.mipav.model.structures.ModelStorageBase
addSurfaceMask, allocateData, calcAvgIntenStdDev, calcMinMax, calcMinMax, calcMinMaxMag, calcMinMaxNonZero, clone, computeDataSize, construct, convertToFloat, disposeLocal, export, export, exportComplexData, exportComplexSliceXY, exportData, exportData, exportData, exportData, exportData, exportData, exportData, exportData, exportData, exportData, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDataNoLock, exportDComplexData, exportDiagonal, exportDiagonal, exportDiagonal, exportDMagData, exportMagData, exportMagData, exportRGBData, exportRGBData, exportRGBData, exportRGBData, exportRGBData, exportRGBDataNoLock, exportRGBDataNoLock, exportSliceXY, exportSliceXY, exportSliceXY, exportSliceXY, exportSliceXY, exportSliceXY, finalize, findMax, get, get, get, get, get, getAvgInten, getAvgIntenB, getAvgIntenG, getAvgIntenR, getAxisOrientation, getBiLinear, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBufferTypeStr, getByte, getByte, getByte, getByte, getByte, getByteBiLinear, getByteTriLinear, getC, getConvolve, getDataSize, getDataType, getDouble, getDouble, getDouble, getDouble, getDouble, getDoubleBiLinear, getDoubleTriLinear, getExtents, getExtents, getExtents, getExtentsSize, getFileInfo, getFileInfo, getFilterType, getFloat, getFloat, getFloat, getFloat, getFloat, getFloatBiLinear, getFloatC, getFloatC, getFloatC, getFloatTriLinear, getFloatTriLinearBounds, getFloatTriLinearBounds, getFloatTriLinearBoundsTime, getFreq1, getFreq2, getFreqU, getFreqV, getHaveWindowed, getHeight, getImage25D, getImageOrientation, getInt, getInt, getInt, getInt, getInt, getIntBiLinear, getIntTriLinear, getLockStatus, getLogMagDisplay, getLong, getLong, getLong, getLong, getLong, getLongBiLinear, getLongTriLinear, getMax, getMaxA, getMaxB, getMaxG, getMaxR, getMin, getMinA, getMinB, getMinG, getMinR, getNDims, getNoLogMax, getNoLogMin, getNoLogMinNonZero, getNonZeroMax, getNonZeroMaxB, getNonZeroMaxG, getNonZeroMaxR, getNonZeroMin, getNonZeroMinB, getNonZeroMinG, getNonZeroMinR, getNumPixels, getOrigin, getOrigin, getOriginalCropCheckbox, getOriginalDoCrop, getOriginalEnd, getOriginalEpsilon, getOriginalExtents, getOriginalFilterConstruction, getOriginalFilterOrder, getOriginalKernelDimension, getOriginalRs, getOriginalStart, getRadiologicalView, getResolutions, getResolutions, getResolutions, getShort, getShort, getShort, getShort, getShort, getShortBiLinear, getShortTriLinear, getSigmaU, getSigmaV, getSize, getSliceSize, getSmallestMagnitudeNegative, getSmallestMagnitudeNegativeB, getSmallestMagnitudeNegativeG, getSmallestMagnitudeNegativeR, getSmallestMagnitudePositive, getSmallestMagnitudePositiveB, getSmallestMagnitudePositiveG, getSmallestMagnitudePositiveR, getStdDeviation, getStdDeviationB, getStdDeviationG, getStdDeviationR, getSumPixelInten, getSumPixelIntenB, getSumPixelIntenG, getSumPixelIntenR, getSurfaceMask, getSurfaceMaskColor, getTheta, getTriLinear, getType, getTypeMax, getTypeMin, getTypeString, getUByte, getUByte, getUByte, getUByte, getUByte, getUByteBiLinear, getUByteTriLinear, getUInt, getUInt, getUInt, getUInt, getUInt, getUIntBiLinear, getUIntTriLinear, getUnequalDim, getUnitsOfMeasure, getUnitsOfMeasure, getUnitsOfMeasure, getUShort, getUShort, getUShort, getUShort, getUShort, getUShortBiLinear, getUShortTriLinear, getVolumeIterationFactors, getVolumeSize, getWidth, importComplexData, importData, importData, importData, importData, importData, importData, importData, importData, importData, importData, importDComplexData, importRGBData, importRGBData, importRGBData, importUData, importUData, importUData, reallocate, reallocate, reallocate, recomputeDataSize, releaseLock, removeSurfaceMask, removeSurfaceMasks, restoreSurfaceMasks, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setAll, setAll, setAll, setAll, setAll, setAllUByte, setAllUShort, setC, setC, setC, setC, setC, setComplex, setConvolve, setExtents, setFileInfo, setFileInfo, setFilterType, setFreq1, setFreq2, setFreqU, setFreqV, setHaveWindowed, setImage25D, setLock, setLock, setLogMagDisplay, setMax, setMaxB, setMaxG, setMaxR, setMin, setMinB, setMinG, setMinR, setOriginalCropCheckbox, setOriginalDoCrop, setOriginalEnd, setOriginalEpsilon, setOriginalExtents, setOriginalFilterConstruction, setOriginalFilterOrder, setOriginalKernelDimension, setOriginalRs, setOriginalStart, setRadiologicalView, setResolutions, setResolutions, setShort, setShort, setSigmaU, setSigmaV, setTheta, setType, setType, setUByte, setUByte, setUByte, setUByte, setUByte, setUInt, setUInt, setUInt, setUInt, setUInt, setUnequalDim, setUShort, setUShort, setUShort, setUShort, setUShort
-
Methods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
nativeClone
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
histogramFrameVector
private java.util.Vector<java.awt.Frame> histogramFrameVector
DOCUMENT ME!
-
maxEntropyThreshold
private int maxEntropyThreshold
DOCUMENT ME!
-
mean
private double mean
DOCUMENT ME!
-
mode
private int mode
DOCUMENT ME!
-
otsuThreshold
private int otsuThreshold
DOCUMENT ME!
-
stRange
private int stRange
DOCUMENT ME!
-
endRange
private int endRange
DOCUMENT ME!
-
totalPixels
private int totalPixels
DOCUMENT ME!
-
-
Method Detail
-
getEndRange
public int getEndRange()
Gets the starting range of pixels.- Returns:
- ending range
-
getMaxEntropyThreshold
public int getMaxEntropyThreshold()
Gets the maximum entropy threshold.- Returns:
- int threshold
-
getMean
public double getMean()
Gets the mean pixel intensity.- Returns:
- mean pixel intensity
-
getMode
public int getMode()
Gets the mode of the pixel intensities.- Returns:
- total number of pixels in histogram
-
getOtsuThreshold
public int getOtsuThreshold()
Gets the otsu threshold as calculated in AlgorithmThreshold.- Returns:
- int otsu threshold
-
getStartRange
public int getStartRange()
Gets the starting range of pixels.- Returns:
- starting range
-
getTotalPixels
public int getTotalPixels()
Gets the total pixel count.- Returns:
- total number of pixels in histogram
-
registerFrame
public void registerFrame(java.awt.Frame frame)
Registers the image Frame.- Parameters:
frame
- - Frame to be registered with image model so when the image model changes the view of the image will change
-
setEndRange
public void setEndRange(int end)
Sets the ending range of histogram.- Parameters:
end
- end range of histogram
-
setMaxEntropyThreshold
public void setMaxEntropyThreshold(int thres)
Sets maximum entropy threshold.- Parameters:
thres
- int threshold
-
setMean
public void setMean(double mean)
Sets mean intensity of histogram.- Parameters:
mean
- mean value of intensity
-
setMode
public void setMode(int mode)
Sets the mode intensity of histogram.- Parameters:
mode
- mode value of intensity
-
setOtsuThreshold
public void setOtsuThreshold(int otsu)
Sets the Otsu threshold.- Parameters:
otsu
- int threshold
-
setStartRange
public void setStartRange(int start)
Sets the starting range of histogram.- Parameters:
start
- start range of histogram
-
setTotalPixels
public void setTotalPixels(int pixels)
Sets total number of pixels of histogram.- Parameters:
pixels
- total number of pixels
-
unregisterFrame
public void unregisterFrame(java.awt.Frame frame)
Unregisters the image Frame.- Parameters:
frame
- - Frame to be registered
-
-