next up previous
Next: 4.2.4.1 CompressProcess and UncompressProcess Up: 4.2 Class Descriptions Previous: 4.2.3.4 NetworkOutput class


4.2.4 Processing related classes

Figure 10: An OMT class diagram showing the relationships of the processing related classes.
\resizebox*{1\textwidth}{!}{\includegraphics{omt-process.eps}}

The main processing class is the abstract class Process, shown with its children in Figure 4.2.4. This class defines what it is to be a processing module, and all processing modules will have Process as an ancestor. It defines two abstract methods, ProcessImage() and ProcessDimension().

The ProcessImage() method is called with a StereoImage object as the sole parameter and will return the processed image12. If a fatal error is encountered, an exception of some kind should be raised, however non-fatal errors should simply cause the passed StereoImage to be returned unmodified.

The ProcessDimension() method is called with a Dimension object, representing an image size, and returns a Dimension object representing the dimensions of the processed image corresponding to the original dimensions given. This is provided to allow the image size obtained by GetDimension() in Input to be correctly adjusted according to any processing before being passed to Output at its creation time.



Subsections
next up previous
Next: 4.2.4.1 CompressProcess and UncompressProcess Up: 4.2 Class Descriptions Previous: 4.2.3.4 NetworkOutput class
Kevin Pulo
2000-08-22