Class AlgorithmFuzzyConnectednessSegmentation

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmFuzzyConnectednessSegmentation
    extends AlgorithmBase
    • Field Detail

      • BOTH_FUZZY_HARD

        public static final int BOTH_FUZZY_HARD
        This code is ported from MATLAB routines adjacency, affinity, afc, and irfc written by Joakim Lindblad References: 1.) "Fuzzy Connectedness and Object Definition: Theory, Algorithms, and Applications in Image Segmentation" by Jayaram K. Udupa and Supun Samarasekera, Graphical Models and Image Processing, Vol. 58, No. 3, May, 1996, pp. 246-261. 2.) "Fuzzy Connected Object Delineation: Axiomatic Path Strength Definition and the Case of Multiple Seeds" by Punam K. Saha and Jayaram K. Udupa, Computer Vision and Image Understanding, 83, 2001, pp. 275-295. 3.) "Iterative relative fuzzy connectedness for multiple objects with multiple seeds" by Krzysztof Chris Ciesielski, Jayaram K. Udupa, Punam K. Saha, and Ying Zhuge, Computer Vision and Image Understanding, 107, 2007, pp. 160-182.
        See Also:
        Constant Field Values
      • destImage

        private ModelImage[] destImage
        Fuzzy images require 1 image with double values Hard images 1 image with class numbers.
      • destNum

        private int destNum
        DOCUMENT ME!
      • L1Distance

        private int L1Distance
      • distanceDecline

        private double distanceDecline
      • gradientWeight

        private double gradientWeight
      • index_seeds

        private java.util.Vector<java.lang.Integer> index_seeds
      • index_labels

        private java.util.Vector<java.lang.Short> index_labels
      • algorithm

        private int algorithm
      • sliceSize

        private int sliceSize
    • Constructor Detail

      • AlgorithmFuzzyConnectednessSegmentation

        public AlgorithmFuzzyConnectednessSegmentation​(ModelImage[] destImg,
                                                       ModelImage srcImg,
                                                       int algorithm,
                                                       int L1Distance,
                                                       double distanceDecline,
                                                       double gradientWeight,
                                                       java.util.Vector<java.lang.Integer> index_seeds,
                                                       java.util.Vector<java.lang.Short> index_labels)
    • Method Detail

      • finalize

        public void finalize()
        Prepares this class for destruction.
        Overrides:
        finalize in class AlgorithmBase
      • afc

        private double[] afc​(java.util.Vector<java.lang.Integer> index_seeds_original,
                             java.util.Vector<java.lang.Integer> index1,
                             java.util.Vector<java.lang.Integer> index2,
                             java.util.Vector<java.lang.Double> affinity)
      • irfc

        private short[] irfc​(java.util.Vector<java.lang.Integer> index_seeds,
                             java.util.Vector<java.lang.Short> index_labels,
                             java.util.Vector<java.lang.Integer> index1,
                             java.util.Vector<java.lang.Integer> index2,
                             java.util.Vector<java.lang.Double> affinity)