-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutils.h
38 lines (26 loc) · 887 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* \file: utils.h
* \author: Sankhesh Jhaveri
* \brief: declares UTILS namespace
**/
#ifndef _UTILS_H_
#define _UTILS_H_
#include <vcl_string.h>
#include <vtkFileOutputWindow.h>
#include <vtkSmartPointer.h>
#include <vtkImageFlip.h>
#include <itkRGBPixel.h>
#include <itkImageToVTKImageFilter.h>
#include <itkImageFileReader.h>
#include <vtkImageActor.h>
namespace UTILS {
typedef itk::RGBPixel< unsigned char > PixelType;
typedef itk::Image< PixelType, 2 > RGBImageType;
typedef itk::ImageFileReader< RGBImageType > ReaderType;
typedef double ScalarPixelType;
typedef itk::Image< ScalarPixelType, 2 > ScalarImageType;
void redirectVTKWarnings( const vcl_string &fname );
vtkSmartPointer<vtkImageActor> ITKToVTKConvert( RGBImageType::Pointer IP );
RGBImageType::Pointer ComposeRGBImage ( ScalarImageType::Pointer scalarImage );
} //namespace UTILS
#endif //_UTILS_H_