Class CAAMPointInfo


  • public class CAAMPointInfo
    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 $ Auxiliary point data. Needed as a part of the enhanced shape representation extension [Which explains why it's layered upon the CAAMShape class and not merged into it].
    Author:
    Ruida Cheng
    • Constructor Summary

      Constructors 
      Constructor Description
      CAAMPointInfo()
      Constructor
      CAAMPointInfo​(int _m_iPathID, int _m_iTypeFlags, int _m_iConnectFrom, int _m_iConnectTo)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assign​(CAAMPointInfo pInfo)
      Assignment operator.
      void FromFile​(java.io.DataInputStream fh)
      Read point info from a file.
      boolean IsClosed()
      Point info method, is closed point
      boolean IsHole()
      Point info method.
      boolean IsOriginal()
      Point info method.
      boolean IsOuterEdge()
      Point info method, is outer edge or not.
      void SetClosed()
      Set the point to closed point.
      void SetClosed​(boolean enable)
      Sets whether the point belongs to a closed or opened path.
      void SetHole()
      Sets the point to represent a hole
      void SetHole​(boolean enable)
      Sets whether the point belongs to an hole in the model.
      void SetOriginal()
      Set original point.
      void SetOriginal​(boolean enable)
      Sets whether the point is an original model point or an artificial generated point.
      void SetOuterEdge()
      Set outer edge.
      void SetOuterEdge​(boolean enable)
      Sets whether the point belongs to an outer edge or not.
      void ToFile​(java.io.DataOutputStream fh)
      Write point info to a file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_iPathID

        public int m_iPathID
        shape path ID to indicate which shape.
      • m_iTypeFlags

        public int m_iTypeFlags
        point type flag.
      • m_iConnectFrom

        public int m_iConnectFrom
        point connect from index.
      • m_iConnectTo

        public int m_iConnectTo
        point connect to index.
    • Constructor Detail

      • CAAMPointInfo

        public CAAMPointInfo()
        Constructor
      • CAAMPointInfo

        public CAAMPointInfo​(int _m_iPathID,
                             int _m_iTypeFlags,
                             int _m_iConnectFrom,
                             int _m_iConnectTo)
        Constructor
        Parameters:
        _m_iPathID - shape path ID
        _m_iTypeFlags - point type
        _m_iConnectFrom - connect from index
        _m_iConnectTo - connnct to index
    • Method Detail

      • FromFile

        public void FromFile​(java.io.DataInputStream fh)
        Read point info from a file.
        Parameters:
        fh - input file handler
      • ToFile

        public void ToFile​(java.io.DataOutputStream fh)
        Write point info to a file
        Parameters:
        fh - output file handler
      • assign

        public void assign​(CAAMPointInfo pInfo)
        Assignment operator.
        Parameters:
        pInfo - point info
      • IsOuterEdge

        public boolean IsOuterEdge()
        Point info method, is outer edge or not.
        Returns:
        outer edge or not.
      • IsOriginal

        public boolean IsOriginal()
        Point info method.
        Returns:
        is original point.
      • IsClosed

        public boolean IsClosed()
        Point info method, is closed point
        Returns:
        is closed point
      • IsHole

        public boolean IsHole()
        Point info method.
        Returns:
        is a hole.
      • SetOuterEdge

        public void SetOuterEdge()
        Set outer edge.
      • SetOuterEdge

        public void SetOuterEdge​(boolean enable)
        Sets whether the point belongs to an outer edge or not.
        Parameters:
        enable - true outer edge, false not.
      • SetOriginal

        public void SetOriginal()
        Set original point.
      • SetOriginal

        public void SetOriginal​(boolean enable)
        Sets whether the point is an original model point or an artificial generated point.
        Parameters:
        enable - true original point, false not.
      • SetClosed

        public void SetClosed()
        Set the point to closed point.
      • SetClosed

        public void SetClosed​(boolean enable)
        Sets whether the point belongs to a closed or opened path.
        Parameters:
        enable - true belong to path, false not.
      • SetHole

        public void SetHole()
        Sets the point to represent a hole
      • SetHole

        public void SetHole​(boolean enable)
        Sets whether the point belongs to an hole in the model.
        Parameters:
        enable - true is hole, false not.