ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkParallelSparseFieldLevelSetImageFilter.h>
This class implements a finite difference partial differential equation solver for evolving surfaces embedded in volumes as level-sets.
2. For each active layer index , add the change to the grid point value and redefine the active set indicies and those of its layers based on any value changes which have moved outside of the numerical range allowed for the active set.
3. Starting with the first layers adjacent to the active set and moving outwards, reconstruct the distance transform by setting values in the layers according to their neighbors. At the very outer layers, add or remove indicies which have come into or moved out of the sparse field.
Definition at line 249 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef SmartPointer< const Self > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ConstPointer |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 258 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Superclass::FiniteDifferenceFunctionType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::FiniteDifferenceFunctionType |
The value type of the time step. This is distinct from PixelType because PixelType may often be a vector value, while the TimeStep is a scalar value.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 262 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef OutputImageType::IndexType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::IndexType |
Definition at line 275 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef TInputImage itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::InputImageType |
Information derived from the image types.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 270 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef std::vector< LayerPointerType > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::LayerListType |
A type for a list of LayerPointerTypes
Definition at line 295 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef ObjectStore< LayerNodeType > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::LayerNodeStorageType |
Memory pre-allocator used to manage layer nodes in a multithreaded environment.
Definition at line 306 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef ParallelSparseFieldLevelSetNode< IndexType > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::LayerNodeType |
Node type used in parallel sparse field layer lists.
Definition at line 288 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef LayerType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::LayerPointerType |
Definition at line 292 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef SparseFieldLayer< LayerNodeType > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::LayerType |
A list type used in the algorithm.
Definition at line 291 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Superclass::NeighborhoodScalesType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::NeighborhoodScalesType |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 264 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Offset< itkGetStaticConstMacro(ImageDimension) > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::OffsetType |
Definition at line 308 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef TOutputImage itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::OutputImageType |
Superclass typedefs.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 274 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef OutputImageType::PixelType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::PixelType |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 279 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef SmartPointer< Self > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::Pointer |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 257 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Superclass::RadiusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::RadiusType |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 263 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef ParallelSparseFieldLevelSetImageFilter itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 255 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Image< StatusType, itkGetStaticConstMacro(ImageDimension) > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::StatusImageType |
The type of the image used to index status information. Necessary for the internals of the algorithm.
Definition at line 302 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef signed char itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::StatusType |
Type used for storing status information
Definition at line 298 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef FiniteDifferenceImageFilter< TInputImage, TOutputImage > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::Superclass |
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 256 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef OutputImageType::RegionType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadRegionType |
Definition at line 281 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef Superclass::TimeStepType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::TimeStepType |
Typedefs from the superclass
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 261 of file itkParallelSparseFieldLevelSetImageFilter.h.
typedef OutputImageType::ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ValueType |
The data type used in numerical computations. Derived from the output image type.
Definition at line 285 of file itkParallelSparseFieldLevelSetImageFilter.h.
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ParallelSparseFieldLevelSetImageFilter | ( | ) | [protected] |
End concept checking
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::~ParallelSparseFieldLevelSetImageFilter | ( | ) | [inline, protected] |
End concept checking
Definition at line 346 of file itkParallelSparseFieldLevelSetImageFilter.h.
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ParallelSparseFieldLevelSetImageFilter | ( | const Self & | ) | [private] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::AllocateUpdateBuffer | ( | ) | [inline, protected, virtual] |
Reserves memory in the update buffer
Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 433 of file itkParallelSparseFieldLevelSetImageFilter.h.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ApplyUpdate | ( | const TimeStepType & | ) | [inline, protected, virtual] |
This method is not implemented or necessary for this solver
Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 545 of file itkParallelSparseFieldLevelSetImageFilter.h.
TimeStepType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CalculateChange | ( | ) | [inline, protected, virtual] |
This method is not implemented or necessary for this solver
Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 552 of file itkParallelSparseFieldLevelSetImageFilter.h.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CheckLoadBalance | ( | ) | [protected, virtual] |
Check if the load is fairly balanced among the threads. This is performed by just one thread while all other threads wait. This need NOT be performed every iteration because the level-set surface moves slowly and it is correct to believe that during an iteration the movement is small enough that the small gain obtained by load balancing (if any) does not warrant the overhead for calling this method. How often this is done is controlled by a parameter LOAD_BALANCE_ITERATION_FREQUENCY which is defined in the IterateThreaderCallback() function. A parameter that defines a degree of unbalancedness of the load among threads is MAX_PIXEL_DIFFERENCE_PERCENT which is defined in CheckLoadBalance().
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ClearInterNeighborNodeTransferBufferLayers | ( | ThreadIdType | ThreadId, |
unsigned int | InOrOut, | ||
unsigned int | BufferLayerNumber | ||
) | [protected] |
Delete all nodes in a thread's own lists which its used to transfer nodes to neighboring threads.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ClearList | ( | ThreadIdType | ThreadId, |
LayerPointerType | ListPtr | ||
) | [protected] |
Delete all nodes in the List
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ComputeInitialThreadBoundaries | ( | ) | [protected] |
This performs the initial load distribution among the threads. Every thread gets a slab of the data to work on. The slabs created along a specific dimension. Load balancing is performed along the greatest numbered dimension (i.e. the 3rd dimension in the 3D case and the 2nd dimension in the 2D case). During the initializing of the sparse field layer an histogram is computed that stores the number of nodes in the active set for each index along the chosen dimension. This histogram is used to divide the work "equally" among threads so that each thread approximately get the same number of nodes to process.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ConstructActiveLayer | ( | ) | [protected] |
Constructs the active layer and initialize the first layers inside and outside of the active layer. The active layer defines the position of the zero level set by its values, which are constrained within a range around zero.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ConstructLayer | ( | const StatusType & | from, |
const StatusType & | to | ||
) | [protected] |
Initializes a layer of the sparse field using a previously initialized layer. Builds the list of nodes in m_Layer[to] using m_Layer[from]. Marks values in the m_StatusImage.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CopyInputToOutput | ( | ) | [protected, virtual] |
Copies the input to the output image. Processing occurs on the output image, so the data type of the output image determines the precision of the calculations (i.e. double or float). This method overrides the parent class method to do some additional processing.
Implements itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CopyInsertInterNeighborNodeTransferBufferLayers | ( | ThreadIdType | ThreadId, |
LayerPointerType | InputList, | ||
unsigned int | InOrOut, | ||
unsigned int | BufferLayerNumber | ||
) | [protected] |
Make a copy of the nodes given to one thread by its neighbors to process and insert them into the thread's own list.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CopyInsertList | ( | ThreadIdType | ThreadId, |
LayerPointerType | FromListPtr, | ||
LayerPointerType | ToListPtr | ||
) | [protected] |
Make a copy of the nodes in the FromList and insert them into the ToList.
virtual::itk::LightObject::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::DeallocateData | ( | ) | [protected] |
Delete the data and synchronization primitives used by the threads during iterations.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GenerateData | ( | ) | [protected, virtual] |
The RMS change calculated from each update. Can be used by a subclass to determine halting criteria. Valid only for the previous iteration, not during the current iteration. Calculated in ApplyUpdate. Reimplement the GenerateData() function from FiniteDifferenceImageFilter for more effective multithreading
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
LayerPointerType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetActiveListForIndex | ( | const IndexType | index | ) | [inline] |
Definition at line 322 of file itkParallelSparseFieldLevelSetImageFilter.h.
virtual ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetIsoSurfaceValue | ( | ) | const [virtual] |
Set/Get the value of the isosurface to use in the input image.
virtual const char* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
virtual StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetNumberOfLayers | ( | ) | const [virtual] |
Set/Get the number of layers to use in the sparse field. Argument is the number of layers on ONE side of the active layer, so the total layers in the sparse field is 2 * NumberOfLayers + 1
unsigned int itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetThreadNumber | ( | unsigned int | splitAxisValue | ) | [protected] |
Find the thread to which a pixel belongs
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetThreadRegionSplitByBoundary | ( | ThreadIdType | ThreadId, |
ThreadRegionType & | ThreadRegion | ||
) | [protected] |
Obtain a thread's region split as per the load balancing is done.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::GetThreadRegionSplitUniformly | ( | ThreadIdType | ThreadId, |
ThreadRegionType & | ThreadRegion | ||
) | [protected] |
Split the volume uniformly along the chosen dimension for post processing the output.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::Initialize | ( | ) | [protected, virtual] |
Constructs the sparse field layers and initializes their values. Also creates data structures that are NOT local to a thread.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::InitializeActiveLayerValues | ( | ) | [protected] |
Initializes the values of the active layer set.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::InitializeBackgroundPixels | ( | ) | [protected, virtual] |
This method pre-processes pixels inside and outside the sparse field layers. The default is to set them to positive and negative values, respectively. This is not necessary as part of the calculations, but produces a more intuitive output for the user.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::Iterate | ( | ) | [protected] |
This method calculates the change and does the update, i.e. one iteration of this iterative solver. A barrier class is used to synchronize execution and keep the CalculateChange and ApplyUpdate sections from executing simultaneously.
static ITK_THREAD_RETURN_TYPE itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::IterateThreaderCallback | ( | void * | arg | ) | [static, protected] |
static Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::operator= | ( | const Self & | ) | [private] |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
End concept checking
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ProcessStatusList | ( | LayerType * | InputList, |
const StatusType & | ChangeToStatus, | ||
const StatusType & | SearchForStatus, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::PropagateAllLayerValues | ( | ) | [protected] |
Adjusts the values associated with all the index layers of the sparse field by propagating out one layer at a time from the active set. This method also takes care of deleting nodes from the layers which have been marked in the status image as having been moved to other layers.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::PropagateLayerValues | ( | const StatusType & | from, |
const StatusType & | to, | ||
const StatusType & | promote, | ||
unsigned int | InOrOut | ||
) | [protected] |
Adjusts the values in a single layer "to" using values in a neighboring layer "from". The list of indicies in "to" are traversed and assigned new values appropriately. Any indicies in "to" without neighbors in "from" are moved into the "promote" layer (or deleted if "promote" is greater than the number of layers). "InOrOut" == 1 indicates this propagation is inwards (more negative). "InOrOut" == 0 indicates this propagation is outwards (more positive).
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::SetIsoSurfaceValue | ( | ValueType | _arg | ) | [virtual] |
Set/Get the value of the isosurface to use in the input image.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::SetNumberOfLayers | ( | StatusType | _arg | ) | [virtual] |
Set/Get the number of layers to use in the sparse field. Argument is the number of layers on ONE side of the active layer, so the total layers in the sparse field is 2 * NumberOfLayers + 1
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::SignalNeighbor | ( | unsigned int | SemaphoreArrayNumber, |
ThreadIdType | ThreadId | ||
) | [protected] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::SignalNeighborsAndWait | ( | ThreadIdType | ThreadId | ) | [protected] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedAllocateData | ( | ThreadIdType | ThreadId | ) | [protected] |
Each thread allocates and initializes the data it will use by itself. This maintains the memory locality of data w.r.t. the thread in a shared memory environment.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedApplyUpdate | ( | const TimeStepType & | dt, |
ThreadIdType | ThreadId | ||
) | [protected, virtual] |
Does the actual work of updating the output from the UpdateContainer over an output region supplied by the multithreading mechanism.
virtual TimeStepType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedCalculateChange | ( | ThreadIdType | ThreadId | ) | [protected, virtual] |
This method does the actual work of calculating change over a region supplied by the multithreading mechanism.
virtual ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedCalculateUpdateValue | ( | const ThreadIdType | , |
const IndexType | , | ||
const TimeStepType & | dt, | ||
const ValueType & | value, | ||
const ValueType & | change | ||
) | [inline, protected, virtual] |
This method allows a subclass to override the way in which updates to output values are applied during each iteration. The default simply follows the standard finite difference scheme of scaling the change by the timestep and adding to the value of the previous iteration.
Definition at line 527 of file itkParallelSparseFieldLevelSetImageFilter.h.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedInitializeData | ( | ThreadIdType | ThreadId, |
const ThreadRegionType & | ThreadRegion | ||
) | [protected] |
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedInitializeIteration | ( | ThreadIdType | ThreadId | ) | [protected, virtual] |
If child classes need an entry point to the start of every iteration step they can override this method. This method is defined but empty in this class.
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedLoadBalance | ( | ThreadIdType | ThreadId | ) | [protected, virtual] |
Redistribute an load among the threads to obtain a more balanced load distribution. This is performed in parallel by all the threads.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedPostProcessOutput | ( | const ThreadRegionType & | regionToProcess | ) | [protected] |
Assign background pixels INSIDE the sparse field layers to a new level set with value less than the innermost layer. Assign background pixels OUTSIDE the sparse field layers to a new level set with value greater than the outermost layer.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedProcessFirstLayerStatusLists | ( | unsigned int | InputLayerNumber, |
unsigned int | OutputLayerNumber, | ||
const StatusType & | SearchForStatus, | ||
unsigned int | InOrOut, | ||
unsigned int | BufferLayerNumber, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
Performs two tasks. The situation here is that ThreadedProcessStatusList has been called just once after the active layer values have been updated and the UpLists and DownLists formed. Some nodes are now moving into the active layer. The two tasks performed are: 1. modify the status-image like it is performed by the ThreadedProcessStatusList. 2. Update the values in the output-image for those nodes that are moving IN the active layer.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedProcessOutsideList | ( | unsigned int | InputLayerNumber, |
const StatusType & | ChangeToStatus, | ||
unsigned int | InOrOut, | ||
unsigned int | BufferLayerNumber, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
Push each index in the input list into its appropriate status layer (ChangeToStatus) and ... ... update the status image value at that index
virtual void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedProcessPixelEnteringActiveLayer | ( | const IndexType & | , |
const ValueType & | , | ||
ThreadIdType | |||
) | [protected, virtual] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedProcessStatusList | ( | unsigned int | InputLayerNumber, |
unsigned int | OutputLayerNumber, | ||
const StatusType & | ChangeToStatus, | ||
const StatusType & | SearchForStatus, | ||
unsigned int | InOrOut, | ||
unsigned int | BufferLayerNumber, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
Push each index in the input list into its appropriate status layer (ChangeToStatus) and update the status image value at that index. Also examine the neighbors of the index, (with status SearchForStatus) to determine which need to go onto the output list.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedPropagateLayerValues | ( | const StatusType & | from, |
const StatusType & | to, | ||
const StatusType & | promote, | ||
unsigned int | InorOut, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ThreadedUpdateActiveLayerValues | ( | const TimeStepType & | dt, |
LayerType * | StatusUpList, | ||
LayerType * | StatusDownList, | ||
ThreadIdType | ThreadId | ||
) | [protected] |
1. Updates the values (in the output-image) of the nodes in the active layer that are moving OUT of the active layer. These values are used in the ThreadedProcessFirstLayerStatusLists() method to assign values for new nodes that are moving IN the active layer. 2. This function also constructs the up/down lists for nodes that are moving out of the active layer.
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::EqualityComparable< PixelType > | ) |
Begin concept checking This class requires OutputEqualityComparableCheck in the form of ( Concept::EqualityComparable< PixelType > )
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::Convertible< double, PixelType > | ) |
This class requires DoubleConvertibleToOutputCheck in the form of ( Concept::Convertible< double, PixelType > )
itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::typedef | ( | Concept::OStreamWritable< PixelType > | ) |
This class requires OutputOStreamWritableCheck in the form of ( Concept::OStreamWritable< PixelType > )
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::WaitForAll | ( | ) | [protected] |
Thread synchronization methods.
void itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::WaitForNeighbor | ( | unsigned int | SemaphoreArrayNumber, |
ThreadIdType | ThreadId | ||
) | [protected] |
const unsigned int itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::ImageDimension = TOutputImage::ImageDimension [static] |
Dimensionality of input and output data is assumed to be the same.
Reimplemented from itk::FiniteDifferenceImageFilter< TInputImage, TOutputImage >.
Definition at line 277 of file itkParallelSparseFieldLevelSetImageFilter.h.
Barrier::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_Barrier [protected] |
A global barrier used for synchronization between all threads.
Definition at line 715 of file itkParallelSparseFieldLevelSetImageFilter.h.
unsigned int* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_Boundary [protected] |
The boundaries defining thread regions
Definition at line 701 of file itkParallelSparseFieldLevelSetImageFilter.h.
bool itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_BoundaryChanged [protected] |
A boolean variable stating if the boundaries had been changed during CheckLoadBalance()
Definition at line 698 of file itkParallelSparseFieldLevelSetImageFilter.h.
bool itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_BoundsCheckingActive [private] |
This flag is true when methods need to check boundary conditions and false when methods do not need to check for boundary conditions.
Definition at line 788 of file itkParallelSparseFieldLevelSetImageFilter.h.
double itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ConstantGradientValue [protected] |
The constant gradient to maintain between isosurfaces in the spare-field of the level-set image. This value defaults to 1.0
Definition at line 356 of file itkParallelSparseFieldLevelSetImageFilter.h.
ThreadData* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_Data [protected] |
An array storing the individual (local) data structures for each thread.
Definition at line 767 of file itkParallelSparseFieldLevelSetImageFilter.h.
int* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_GlobalZHistogram [protected] |
Histogram of number of pixels in each Z plane for the entire 3D volume
Definition at line 704 of file itkParallelSparseFieldLevelSetImageFilter.h.
bool itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_InterpolateSurfaceLocation [protected] |
This flag tells the solver whether or not to interpolate for the actual surface location when calculating change at each active layer node. By default this is turned on. Subclasses which do not sample propagation (speed), advection, or curvature terms should turn this flag off.
Definition at line 777 of file itkParallelSparseFieldLevelSetImageFilter.h.
ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_IsoSurfaceValue [protected] |
The value in the input which represents the isosurface of interest.
Definition at line 415 of file itkParallelSparseFieldLevelSetImageFilter.h.
LayerNodeStorageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_LayerNodeStore [protected] |
Storage for layer node objects.
Definition at line 412 of file itkParallelSparseFieldLevelSetImageFilter.h.
LayerListType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_Layers [protected] |
An array which contains all of the layers needed in the sparse field. Layers are organized as follows: m_Layer[0] = active layer, m_Layer[i:odd] = inside layer (i+1)/2, m_Layer[i:even] = outside layer i/2. This is used only during the initialization of the level set.
Definition at line 394 of file itkParallelSparseFieldLevelSetImageFilter.h.
unsigned int* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_MapZToThreadNumber [protected] |
The mapping from a z-value to the thread in whose region the z-value lies
Definition at line 708 of file itkParallelSparseFieldLevelSetImageFilter.h.
ParallelSparseFieldCityBlockNeighborList< NeighborhoodIterator< OutputImageType > > itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_NeighborList [protected] |
Connectivity information for examining neighbor pixels.
Definition at line 352 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_NumberOfLayers [protected] |
The number of layers to use in the sparse field. Sparse field will consist of m_NumberOfLayers layers on both sides of a single active layer. This active layer is the interface of interest, i.e. the zero level set.
Definition at line 400 of file itkParallelSparseFieldLevelSetImageFilter.h.
ThreadIdType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_NumOfThreads [protected] |
For debugging. Writes the active layer set (grid-points closest to evolving interface) to a file. The number of threads to use.
Definition at line 688 of file itkParallelSparseFieldLevelSetImageFilter.h.
OutputImageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_OutputImage [protected] |
Definition at line 404 of file itkParallelSparseFieldLevelSetImageFilter.h.
OutputImageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_OutputImageTemp [protected] |
Definition at line 409 of file itkParallelSparseFieldLevelSetImageFilter.h.
OutputImageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ShiftedImage [protected] |
This image is a copy of the input with m_IsoSurfaceValue subtracted from each pixel. This way we only need to consider the zero level set in our calculations. Makes the implementation easier and more efficient. This is used only during the initialization of the level set.
Definition at line 388 of file itkParallelSparseFieldLevelSetImageFilter.h.
unsigned int itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_SplitAxis [protected] |
The dimension along which to distribute the load.
Definition at line 691 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusActiveChangingDown [static, protected] |
Special status value which indicates a pending change to a more negative sparse field.
Definition at line 370 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusActiveChangingUp [static, protected] |
Special status value which indicates a pending change to a more positive sparse field.
Definition at line 366 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusBoundaryPixel [static, protected] |
Special status value which indicates a pixel is on the boundary of the image
Definition at line 382 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusChanging [static, protected] |
Special status value which indicates pending change to another sparse field layer.
Definition at line 378 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusImageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusImage [protected] |
An image of status values used internally by the algorithm.
Definition at line 403 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusImageType::Pointer itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusImageTemp [protected] |
Images used temporarily during the initialization of the thread data structures.
Definition at line 408 of file itkParallelSparseFieldLevelSetImageFilter.h.
StatusType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_StatusNull [static, protected] |
Special status value used as a default for indicies which have no meaningful status.
Definition at line 374 of file itkParallelSparseFieldLevelSetImageFilter.h.
bool itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_Stop [protected] |
Used to check if there are too few pixels remaining. If yes, then we can stop iterating.
Definition at line 771 of file itkParallelSparseFieldLevelSetImageFilter.h.
ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ValueOne [static, protected] |
Multiplicative identity of the ValueType.
Definition at line 359 of file itkParallelSparseFieldLevelSetImageFilter.h.
ValueType itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ValueZero [static, protected] |
Additive identity of the ValueType.
Definition at line 362 of file itkParallelSparseFieldLevelSetImageFilter.h.
int* itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ZCumulativeFrequency [protected] |
Cumulative frequency of number of pixels in each Z plane for the entire 3D volume
Definition at line 712 of file itkParallelSparseFieldLevelSetImageFilter.h.
unsigned int itk::ParallelSparseFieldLevelSetImageFilter< TInputImage, TOutputImage >::m_ZSize [protected] |
The length of the dimension along which to distribute the load.
Definition at line 694 of file itkParallelSparseFieldLevelSetImageFilter.h.