Class CAAMTFLookUp
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMObject
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMTransferFunction
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMTFLookUp
-
public class CAAMTFLookUp extends CAAMTransferFunction
This is the Java modified version of C++ active appearance model API (AAM_API). It is modified with a subset of required functions for automatic MRI prostate segmentation. AAM-API LICENSE - file: license.txt This software is freely available for non-commercial use such as research and education. Please see the full disclaimer below. All publications describing work using this software should cite the reference given below. Copyright (c) 2000-2003 Mikkel B. Stegmann, mbs@imm.dtu.dk IMM, Informatics & Mathematical Modelling DTU, Technical University of Denmark Richard Petersens Plads, Building 321 DK-2800 Lyngby, Denmark http://www.imm.dtu.dk/~aam/ REFERENCES Please use the reference below, when writing articles, reports etc. where the AAM-API has been used. A draft version the article is available from the homepage. I will be happy to receive pre- or reprints of such articles. /Mikkel ------------- M. B. Stegmann, B. K. Ersboll, R. Larsen, "FAME -- A Flexible Appearance Modelling Environment", IEEE Transactions on Medical Imaging, IEEE, 2003 (to appear) ------------- 3RD PART SOFTWARE The software is partly based on the following libraries: - The Microsoft(tm) Vision Software Developers Kit, VisSDK - LAPACK DISCLAIMER This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any non-commercial purpose, and to alter it, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. -- No guarantees of performance accompany this software, nor is any responsibility assumed on the part of the author or IMM. This software is provided by Mikkel B. Stegmann and IMM ``as is'' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall IMM or Mikkel B. Stegmann be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. $Revision: 1.4 $ $Date: 2003/04/23 14:49:15 $ Transfer function that implements a lookup table, which is useful for e.g. histogram equalisations.- Author:
- Ruida Cheng
-
-
Field Summary
Fields Modifier and Type Field Description private CDVector
m_InvLUT
Inverse LUT function.private CDVector
m_LUT
Transfer function lookup table.-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMTransferFunction
eTFid, m_Id, tfBase, tfIdentity, tfLookUp, tfUniformStretch, tfWavelet
-
-
Constructor Summary
Constructors Constructor Description CAAMTFLookUp()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CAAMTransferFunction
Clone()
Clone this instance.void
DeMap(CDVector v)
The inverse of the lookup table transform.void
dispose()
dispose memoryvoid
FromFile(java.io.DataInputStream fh)
Reads the class info from file.void
LoadLUT(CDVector lut)
Loads the lookup table and generates the inverse, i.e. assumes that the LUT monotonic.void
Map(CDVector v)
Maps an input vector using the current lookup table.void
ToFile(java.io.DataOutputStream fh)
Writes the class info to file.java.lang.String
TypeName()
Returns the clear-text type name-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMTransferFunction
AAMLoadTransferFunction, FromFile, Type, TypeInfo
-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMObject
FromFile, ToFile
-
-
-
-
Method Detail
-
dispose
public void dispose()
dispose memory- Overrides:
dispose
in classCAAMTransferFunction
-
Clone
public CAAMTransferFunction Clone()
Clone this instance.- Specified by:
Clone
in classCAAMTransferFunction
- Returns:
- lookup new created transfer function lookup table.
-
TypeName
public final java.lang.String TypeName()
Returns the clear-text type name- Specified by:
TypeName
in classCAAMTransferFunction
- Returns:
-
LoadLUT
public void LoadLUT(CDVector lut)
Loads the lookup table and generates the inverse, i.e. assumes that the LUT monotonic.- Parameters:
lut
- A lookup table in vector form.
-
Map
public void Map(CDVector v)
Maps an input vector using the current lookup table.- Specified by:
Map
in classCAAMTransferFunction
- Parameters:
v
- Input vector. The result is returned in v.
-
DeMap
public void DeMap(CDVector v)
The inverse of the lookup table transform. The input vector is transformed into [0;255] and the the inverse LUT is applied.- Specified by:
DeMap
in classCAAMTransferFunction
- Parameters:
v
- Input vector to de-map. The result is returned in v.
-
FromFile
public void FromFile(java.io.DataInputStream fh)
Reads the class info from file.- Parameters:
fh
- Open binary file handle.
-
ToFile
public void ToFile(java.io.DataOutputStream fh)
Writes the class info to file.- Overrides:
ToFile
in classCAAMTransferFunction
- Parameters:
fh
- Open binary file handle.
-
-