#include <itkRandomImageSource.h>
Inheritance diagram for itk::RandomImageSource< TOutputImage >:
Public Types | |
typedef RandomImageSource | Self |
typedef ImageSource< TOutputImage > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TOutputImage::PixelType | OutputImagePixelType |
typedef TOutputImage::RegionType | OutputImageRegionType |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
virtual void | SetSize (unsigned long data[]) |
virtual unsigned long * | GetSize () const |
virtual void | SetSpacing (float data[]) |
virtual float * | GetSpacing () const |
virtual void | SetOrigin (float data[]) |
virtual float * | GetOrigin () const |
virtual void | SetMin (OutputImagePixelType _arg) |
virtual OutputImagePixelType | GetMin () |
virtual void | SetMax (OutputImagePixelType _arg) |
virtual OutputImagePixelType | GetMax () |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
RandomImageSource () | |
~RandomImageSource () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId) |
virtual void | GenerateOutputInformation () |
RandomImageSource generates an image of random pixel values. This filter uses an inline random number generator since the library drand48, although thread-safe, is very slow in a threaded environment. The output image may be of any dimension.
Definition at line 40 of file itkRandomImageSource.h.
|
Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 47 of file itkRandomImageSource.h. |
|
Typedef for the output image PixelType. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 50 of file itkRandomImageSource.h. |
|
Typedef to describe the output image region type. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 53 of file itkRandomImageSource.h. |
|
Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 46 of file itkRandomImageSource.h. |
|
Standard class typedefs. Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 44 of file itkRandomImageSource.h. |
|
Reimplemented from itk::ImageSource< TOutputImage >. Definition at line 45 of file itkRandomImageSource.h. |
|
|
|
|
|
Generate the information decribing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information. Reimplemented from itk::ProcessObject. |
|
Get the maximum possible pixel value. |
|
Get the minimum possible pixel value. |
|
Run-time type information (and related methods). Reimplemented from itk::ImageSource< TOutputImage >. |
|
Get the origin of the output image. |
|
Get the size of the output image. |
|
Get the spacing of the output image. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::ProcessObject. |
|
Set the maximum possible pixel value. By default, it is NumericTraits<TOutputImage::PixelType>::max(). |
|
Set the minimum possible pixel value. By default, it is NumericTraits<TOutputImage::PixelType>::min(). |
|
Specify the origin of the output image. |
|
Specify the size of the output image. |
|
Specify the spacing of the output image. |
|
If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).
Reimplemented from itk::ImageSource< TOutputImage >. |