Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageRGBToHSV.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageRGBToHSV.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkImageRGBToHSV_h
00039 #define __vtkImageRGBToHSV_h
00040 
00041 
00042 #include "vtkThreadedImageAlgorithm.h"
00043 
00044 class VTK_IMAGING_EXPORT vtkImageRGBToHSV : public vtkThreadedImageAlgorithm
00045 {
00046 public:
00047   static vtkImageRGBToHSV *New();
00048   vtkTypeRevisionMacro(vtkImageRGBToHSV,vtkThreadedImageAlgorithm);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00051 
00052   // Hue is an angle. Maximum specifies when it maps back to 0.  HueMaximum
00053   // defaults to 255 instead of 2PI, because unsigned char is expected as
00054   // input.  Maximum also specifies the maximum of the Saturation.
00055   vtkSetMacro(Maximum,double);
00056   vtkGetMacro(Maximum,double);
00057   
00058 protected:
00059   vtkImageRGBToHSV();
00060   ~vtkImageRGBToHSV() {};
00061 
00062   double Maximum;
00063   
00064   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
00065                        int ext[6], int id);
00066 private:
00067   vtkImageRGBToHSV(const vtkImageRGBToHSV&);  // Not implemented.
00068   void operator=(const vtkImageRGBToHSV&);  // Not implemented.
00069 };
00070 
00071 #endif
00072 
00073 
00074