Class AlgorithmLearnFromFailure64

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

    public class AlgorithmLearnFromFailure64
    extends AlgorithmBase
    implements AlgorithmInterface
    • Field Detail

      • imageNum

        private int imageNum
      • sliceNum

        private int sliceNum
      • patchNum

        private int patchNum
      • training

        private boolean training
      • outStream

        private static java.io.BufferedWriter outStream
      • minIntensity

        private float minIntensity
      • maxIntensity

        private float maxIntensity
      • savedImageDir

        private java.lang.String savedImageDir
    • Constructor Detail

      • AlgorithmLearnFromFailure64

        public AlgorithmLearnFromFailure64​(ModelImage _srcImage,
                                           int _imageNum,
                                           int _sliceNum,
                                           float min,
                                           float max,
                                           boolean train,
                                           java.lang.String _savedImageDir)
      • AlgorithmLearnFromFailure64

        public AlgorithmLearnFromFailure64​(ModelImage _srcImage,
                                           int _imageNum,
                                           int _sliceNum,
                                           float min,
                                           float max,
                                           boolean train,
                                           java.io.BufferedWriter _outStream,
                                           java.lang.String _savedImageDir)
    • Method Detail

      • disposeLocal

        public void disposeLocal()
      • algorithmPerformed

        public void algorithmPerformed​(AlgorithmBase algorithm)
        Description copied from interface: AlgorithmInterface
        Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
        Specified by:
        algorithmPerformed in interface AlgorithmInterface
        Parameters:
        algorithm - the algorithm which has just completed
      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase
      • smoothVOI128double

        public void smoothVOI128double​(ModelImage maskImage,
                                       ModelImage resultImage)
      • learnFromFailure

        private void learnFromFailure()
      • generatePatches

        private void generatePatches()
      • numDigits

        public int numDigits​(int value)
      • extractImage24bits

        private void extractImage24bits​(int xMin,
                                        int xMax,
                                        int yMin,
                                        int yMax,
                                        boolean isCenter)
      • cropImage

        private void cropImage​(int xMin,
                               int xMax,
                               int yMin,
                               int yMax)
      • smoothVOI128single

        public void smoothVOI128single​(ModelImage maskImage,
                                       ModelImage resultImage)