Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00042 #ifndef __vtkImageRGBToHSV_h
    00043 #define __vtkImageRGBToHSV_h
    00044
    00045
    00046 #include "vtkImageToImageFilter.h"
    00047
    00048 class VTK_IMAGING_EXPORT vtkImageRGBToHSV : public vtkImageToImageFilter
    00049 {
    00050 public:
    00051   static vtkImageRGBToHSV *New();
    00052   vtkTypeRevisionMacro(vtkImageRGBToHSV,vtkImageToImageFilter);
    00053   void PrintSelf(ostream& os, vtkIndent indent);
    00054
    00055
    00056   // Hue is an angle. Maximum specifies when it maps back to 0.  HueMaximum
    00057   // defaults to 255 instead of 2PI, because unsigned char is expected as
    00058   // input.  Maximum also specifies the maximum of the Saturation.
    00059   vtkSetMacro(Maximum,float);
    00060   vtkGetMacro(Maximum,float);
    00061
    00062 protected:
    00063   vtkImageRGBToHSV();
    00064   ~vtkImageRGBToHSV() {};
    00065
    00066   float Maximum;
    00067
    00068   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
    00069                        int ext[6], int id);
    00070 private:
    00071   vtkImageRGBToHSV(const vtkImageRGBToHSV&);  // Not implemented.
    00072   void operator=(const vtkImageRGBToHSV&);  // Not implemented.
    00073 };
    00074
    00075 #endif
    00076
    00077
    00078