Class AlgorithmPointSetToImageFilter
- java.lang.Object
-
- java.lang.Thread
-
- gov.nih.mipav.model.algorithms.AlgorithmBase
-
- gov.nih.mipav.model.algorithms.filters.AlgorithmPointSetToImageFilter
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.WindowListener
,java.lang.Runnable
,java.util.EventListener
- Direct Known Subclasses:
AlgorithmBSplineScatteredDataPointSetToImageFilter
public class AlgorithmPointSetToImageFilter extends AlgorithmBase
- Version:
- 0.1 April 8, 2014
- Author:
- William Gandler This a a port of itkPointSetToImageFilter.hxx from the itk package. Here is the original itk header from the itkPointSetToImageFilter.hxx file: Copyright Insight Software Consortium Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.txt Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
-
Field Summary
Fields Modifier and Type Field Description protected double[][]
direction
protected int[]
extents
protected int
extentsLength
protected int
extentsSlice
protected double
insideValue
protected int
nDims
protected int
numberOfRequiredInputs
protected float[]
origin
protected ModelImage
outputImage
protected double
outsideValue
protected java.util.Vector<java.lang.Double>
pointData
protected java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector4d>
pointLocation
protected float[]
resolutions
protected int
xyzExtents
-
Fields inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
destFlag, destImage, image25D, mask, maxProgressValue, minProgressValue, multiThreadingEnabled, nthreads, progress, progressModulus, progressStep, runningInSeparateThread, separable, srcImage, threadStopped
-
-
Constructor Summary
Constructors Constructor Description AlgorithmPointSetToImageFilter(int nDims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Prepares this class for destruction.void
runAlgorithm()
Starts the program.void
setDirection(double[][] direction)
void
setExtents(int[] extents)
void
setOrigin(float[] origin)
void
setPointData(java.util.Vector<java.lang.Double> pointData)
void
setPointLocation(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector4d> pointLocation)
void
setResolutions(float[] resolutions)
-
Methods inherited from class gov.nih.mipav.model.algorithms.AlgorithmBase
actionPerformed, addListener, addProgressChangeListener, calculateImageSize, calculatePrincipleAxis, computeElapsedTime, computeElapsedTime, convertIntoFloat, delinkProgressToAlgorithm, delinkProgressToAlgorithmMulti, displayError, errorCleanUp, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, generateProgressValues, getDestImage, getElapsedTime, getMask, getMaxProgressValue, getMinProgressValue, getNumberOfThreads, getProgress, getProgressChangeListener, getProgressChangeListeners, getProgressModulus, getProgressStep, getProgressValues, getSrcImage, isCompleted, isImage25D, isMultiThreadingEnabled, isRunningInSeparateThread, isThreadStopped, linkProgressToAlgorithm, linkProgressToAlgorithm, makeProgress, notifyListeners, removeListener, removeProgressChangeListener, run, setCompleted, setImage25D, setMask, setMaxProgressValue, setMinProgressValue, setMultiThreadingEnabled, setNumberOfThreads, setProgress, setProgressModulus, setProgressStep, setProgressValues, setProgressValues, setRunningInSeparateThread, setSrcImage, setStartTime, setThreadStopped, startMethod, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
nDims
protected int nDims
-
numberOfRequiredInputs
protected int numberOfRequiredInputs
-
extents
protected int[] extents
-
origin
protected float[] origin
-
resolutions
protected float[] resolutions
-
direction
protected double[][] direction
-
insideValue
protected double insideValue
-
outsideValue
protected double outsideValue
-
pointData
protected java.util.Vector<java.lang.Double> pointData
-
pointLocation
protected java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector4d> pointLocation
-
outputImage
protected ModelImage outputImage
-
extentsLength
protected int extentsLength
-
extentsSlice
protected int extentsSlice
-
xyzExtents
protected int xyzExtents
-
-
Method Detail
-
finalize
public void finalize()
Prepares this class for destruction.- Overrides:
finalize
in classAlgorithmBase
-
setOrigin
public void setOrigin(float[] origin)
-
setResolutions
public void setResolutions(float[] resolutions)
-
setExtents
public void setExtents(int[] extents)
-
setDirection
public void setDirection(double[][] direction)
-
setPointData
public void setPointData(java.util.Vector<java.lang.Double> pointData)
-
setPointLocation
public void setPointLocation(java.util.Vector<WildMagic.LibFoundation.Mathematics.Vector4d> pointLocation)
-
runAlgorithm
public void runAlgorithm()
Starts the program.- Specified by:
runAlgorithm
in classAlgorithmBase
-
-