# vtkImageRGBToYBR.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkImageRGBToYBR.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 =========================================================================*/
    00015 // .NAME vtkImageRGBToYBR - Converts YBR components to RGB.
    00016 // .SECTION Description
    00017 // For each pixel with hue, saturation and value components this filter
    00018 // outputs the color coded as red, green, blue.  Output type must be the same
    00019 // as input type.
    00020
    00021 // .SECTION See Also
    00022 // vtkImageRGBToHSV
    00023
    00024 #ifndef VTKIMAGERGBTOYBR_H
    00025 #define VTKIMAGERGBTOYBR_H
    00026
    00027 #include "vtkThreadedImageAlgorithm.h"
    00028
    00029 class VTK_EXPORT vtkImageRGBToYBR : public vtkThreadedImageAlgorithm
    00030 {
    00031 public:
    00032   static vtkImageRGBToYBR *New();
    00033   vtkTypeRevisionMacro(vtkImageRGBToYBR,vtkThreadedImageAlgorithm);
    00034
    00035   void PrintSelf(ostream& os, vtkIndent indent);
    00036
    00037 protected:
    00038   vtkImageRGBToYBR();
    00039   ~vtkImageRGBToYBR() {};
    00040
    00041   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
    00042                        int ext[6], int id);
    00043 private:
    00044   vtkImageRGBToYBR(const vtkImageRGBToYBR&);  // Not implemented.
    00045   void operator=(const vtkImageRGBToYBR&);  // Not implemented.
    00046 };
    00047
    00048 #endif
    00049