Class CAAMAnalyzeSynthesize
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CAAMAnalyzeSynthesize
-
- Direct Known Subclasses:
CAAMAnalyzeSynthesizeSoftware
public abstract class CAAMAnalyzeSynthesize extends java.lang.Object
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 $ Abstract base class for the analyze/synthesize classes. To core task of such classes is to sample pixels inside a shape placed on an image (the analyze part) and render a texture vector into a shape given in image coordinates (the synthesize part).- Author:
- Ruida Cheng
-
-
Field Summary
Fields Modifier and Type Field Description static int
asOpenGL
hardware OpenGL synthesize, currently disabled.static int
asSoftware
software synthesizeprotected int
m_Id
Synthesize IDprotected CAAMReferenceFrame
m_pReferenceFrame
reference frame
-
Constructor Summary
Constructors Constructor Description CAAMAnalyzeSynthesize(CAAMReferenceFrame rf)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CAAMAnalyzeSynthesize
AAMLoadAnalyzerSynthesizer(java.io.DataInputStream fh, CAAMReferenceFrame rf)
Analyzer/Synthesizer loader.abstract boolean
Analyze(CAAMShape shape, ModelSimpleImage refImg, boolean useInterpolation)
Analyze image.abstract boolean
Analyze(CAAMShape shape, CDVector texture, boolean useInterpolation)
Analyze imageabstract CAAMAnalyzeSynthesize
Clone(CAAMReferenceFrame rf)
Anyalyze/Synthesize object cloneabstract void
dispose()
Dispose memoryvoid
FromFile(java.io.DataInputStream fh, int _id)
Reads an object from disk.abstract void
SetAnalyzeImage(ModelSimpleImage img)
Set the analyzed imageabstract boolean
Synthesize(CAAMShape shape, CDVector texture, ModelSimpleImage destImage, boolean renderOntoImage)
Image synthesize.void
ToFile(java.io.DataOutputStream fh)
Write an object to disk.
-
-
-
Field Detail
-
asSoftware
public static int asSoftware
software synthesize
-
asOpenGL
public static int asOpenGL
hardware OpenGL synthesize, currently disabled.
-
m_pReferenceFrame
protected final CAAMReferenceFrame m_pReferenceFrame
reference frame
-
m_Id
protected int m_Id
Synthesize ID
-
-
Constructor Detail
-
CAAMAnalyzeSynthesize
public CAAMAnalyzeSynthesize(CAAMReferenceFrame rf)
Constructor- Parameters:
rf
- The reference frame to analyze and synthesize
-
-
Method Detail
-
FromFile
public void FromFile(java.io.DataInputStream fh, int _id)
Reads an object from disk. Deprecated.- Parameters:
fh
- input stream_id
- file id
-
ToFile
public void ToFile(java.io.DataOutputStream fh)
Write an object to disk.- Parameters:
fh
- output stream
-
AAMLoadAnalyzerSynthesizer
public static CAAMAnalyzeSynthesize AAMLoadAnalyzerSynthesizer(java.io.DataInputStream fh, CAAMReferenceFrame rf)
Analyzer/Synthesizer loader. The function loads an Analyzer/Synthesizer from a stream, instantiates the correct concrete class and returns a base class pointer.- Parameters:
fh
- input stream from diskrf
- reference frame- Returns:
- An instance of Analyzer/Synthesize object created on the heap
-
dispose
public abstract void dispose()
Dispose memory
-
SetAnalyzeImage
public abstract void SetAnalyzeImage(ModelSimpleImage img)
Set the analyzed image- Parameters:
img
- MIPAV simple image as the pass in type
-
Analyze
public abstract boolean Analyze(CAAMShape shape, CDVector texture, boolean useInterpolation)
Analyze image- Parameters:
shape
- AAM shape, VOI shapetexture
- image textureuseInterpolation
- interpolation type- Returns:
- success or not
-
Analyze
public abstract boolean Analyze(CAAMShape shape, ModelSimpleImage refImg, boolean useInterpolation)
Analyze image.- Parameters:
shape
- VOI shape converted to AAM shaperefImg
- image reference, MIPAV simple image typeuseInterpolation
- interpolation type- Returns:
- success or not
-
Synthesize
public abstract boolean Synthesize(CAAMShape shape, CDVector texture, ModelSimpleImage destImage, boolean renderOntoImage)
Image synthesize.- Parameters:
shape
- VOI shapetexture
- image texturedestImage
- target imagerenderOntoImage
- intermediate image- Returns:
- success or not
-
Clone
public abstract CAAMAnalyzeSynthesize Clone(CAAMReferenceFrame rf)
Anyalyze/Synthesize object clone- Parameters:
rf
- reference frame- Returns:
- cloned object
-
-