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

Imaging/vtkImageRGBToHSV.h

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