GDCM 2.0.17
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 Mathieu Malaterre 00007 All rights reserved. 00008 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html 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 /*========================================================================= 00016 00017 Portions of this file are subject to the VTK Toolkit Version 3 copyright. 00018 00019 Program: Visualization Toolkit 00020 Module: $RCSfile: vtkImageRGBToYBR.h,v $ 00021 00022 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00023 All rights reserved. 00024 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00025 00026 This software is distributed WITHOUT ANY WARRANTY; without even 00027 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00028 PURPOSE. See the above copyright notice for more information. 00029 00030 =========================================================================*/ 00031 // .NAME vtkImageRGBToYBR - Converts YBR components to RGB. 00032 // .SECTION Description 00033 // For each pixel with hue, saturation and value components this filter 00034 // outputs the color coded as red, green, blue. Output type must be the same 00035 // as input type. 00036 00037 // .SECTION See Also 00038 // vtkImageRGBToHSV 00039 00040 #ifndef VTKIMAGERGBTOYBR_H 00041 #define VTKIMAGERGBTOYBR_H 00042 00043 #include "vtkThreadedImageAlgorithm.h" 00044 00045 class VTK_EXPORT vtkImageRGBToYBR : public vtkThreadedImageAlgorithm 00046 { 00047 public: 00048 static vtkImageRGBToYBR *New(); 00049 vtkTypeRevisionMacro(vtkImageRGBToYBR,vtkThreadedImageAlgorithm); 00050 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00053 protected: 00054 vtkImageRGBToYBR(); 00055 ~vtkImageRGBToYBR() {}; 00056 00057 void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, 00058 int ext[6], int id); 00059 private: 00060 vtkImageRGBToYBR(const vtkImageRGBToYBR&); // Not implemented. 00061 void operator=(const vtkImageRGBToYBR&); // Not implemented. 00062 }; 00063 00064 #endif