#include <arithmeticImage.h>
Inheritance diagram for iptk::ArithmeticImage:


 Image arithmetic is assumed to be performed between two objects of type iptk::Image using one binary operator. The left operand is called the left-image and the right operand is called the right-image. The member function evaluate() should be called to perform the actual arithmetic operation after the operands are set. If required, the re-scaleing of the intensity values can be performed using the rescale() member function. 
Public Member Functions | |
| ArithmeticImage (void) | |
| Default Constructor.   | |
| ArithmeticImage (const ArithmeticImage &ai) | |
| Copy Constructor.   | |
| ~ArithmeticImage () | |
| Destructor.  | |
| void | setLeftImage (const iptk::Image &im) | 
| Sets the left operand image.  | |
| void | setRightImage (const iptk::Image &im) | 
| Sets the right operand image.  | |
| iptk::Image | getResult (void) | 
| Returns the result of the arithmetic operation and optionally, result of rescaling.  | |
| virtual void | evaluate (void)=0 | 
| A pure virtual function which should be overidden in the derived class.   | |
| void | rescale (void) | 
| Rescales the intensity values.   | |
Protected Attributes | |
| iptk::Image | LEFT_IMAGE | 
| The left operand image.   | |
| iptk::Image | RIGHT_IMAGE | 
| The right operand image.   | |
| iptk::Image | RESULT | 
| The result image.   | |
      
  | 
  
| 
 Default Constructor. Does nothing.  | 
  
      
  | 
  
| 
 Copy Constructor. Its is only a reference copier.  | 
  
      
  | 
  
| 
 A pure virtual function which should be overidden in the derived class. 
This function should do/does the actual evaluation of the arithmetic operation and stores the result in the protected member  
NOTE :: A derived class should store only the raw image in  Implemented in iptk::AdditionImage, iptk::DifferenceImage, iptk::ProductImage, and iptk::QuotientImage.  | 
  
      
  | 
  
| 
 Rescales the intensity values. The intensity values in the image would be such that the minimum value is 0 and the maximum value is 255. 
Note that this function leads to a meaningful result only after a call to the   | 
  
      
  | 
  
| 
 The left operand image. A derived class should make use of this image.  | 
  
      
  | 
  
| 
 The result image. A derived class should store the result in this image.  | 
  
      
  | 
  
| 
 The right operand image. A derived class should make use of this image.  | 
  
 1.3.7