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:
Serializable,Cloneable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nih.mipav.model.structures.ModelStorageBase
ModelStorageBase.DataType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDOCUMENT ME!DOCUMENT ME!private intDOCUMENT ME!private doubleDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private intDOCUMENT ME!private intDOCUMENT 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 -
Method Summary
Modifier and TypeMethodDescriptionintGets the starting range of pixels.intGets the maximum entropy threshold.doublegetMean()Gets the mean pixel intensity.intgetMode()Gets the mode of the pixel intensities.intGets the otsu threshold as calculated in AlgorithmThreshold.intGets the starting range of pixels.intGets the total pixel count.voidregisterFrame(Frame frame) Registers the image Frame.voidsetEndRange(int end) Sets the ending range of histogram.voidsetMaxEntropyThreshold(int thres) Sets maximum entropy threshold.voidsetMean(double mean) Sets mean intensity of histogram.voidsetMode(int mode) Sets the mode intensity of histogram.voidsetOtsuThreshold(int otsu) Sets the Otsu threshold.voidsetStartRange(int start) Sets the starting range of histogram.voidsetTotalPixels(int pixels) Sets total number of pixels of histogram.voidunregisterFrame(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, setUShortMethods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
nativeClone
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
histogramFrameVector
DOCUMENT ME! -
maxEntropyThreshold
private int maxEntropyThresholdDOCUMENT ME! -
mean
private double meanDOCUMENT ME! -
mode
private int modeDOCUMENT ME! -
otsuThreshold
private int otsuThresholdDOCUMENT ME! -
stRange
private int stRangeDOCUMENT ME! -
endRange
private int endRangeDOCUMENT ME! -
totalPixels
private int totalPixelsDOCUMENT ME!
-
-
Constructor Details
-
ModelHistogram
public ModelHistogram(int type, int[] dimExtents) ModelHistogram.- Parameters:
type- indicates type of data in histogramdimExtents- array indicating extents (1 - dimension)
-
-
Method Details
-
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
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
Unregisters the image Frame.- Parameters:
frame- - Frame to be registered
-