/
Types.h
29 lines (21 loc) · 1010 Bytes
/
Types.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
#ifndef TYPES_H
#define TYPES_H
#include "itkConstShapedNeighborhoodIterator.h"
#include "itkImage.h"
//#include "itkShapedNeighborhoodIterator.h"
#include "itkRGBPixel.h"
#include "itkVectorImage.h"
// All images are stored internally as float pixels
typedef itk::VectorImage<float,2> ImageType;
typedef itk::VariableLengthVector<float> PixelType;
typedef itk::Image<itk::CovariantVector<float, 3> > Vector3ImageType;
typedef itk::Image<float, 2> FloatScalarImageType;
// For writing images, we need to first convert to actual unsigned char images
typedef itk::Image<unsigned char, 2> UnsignedCharScalarImageType;
//typedef UnsignedCharScalarImageType MaskImageType;
// For traversing image with an 8-neighborhood-visit-only-once idea
//typedef itk::ShapedNeighborhoodIterator<ImageType> NeighborhoodIteratorType;
typedef itk::ConstShapedNeighborhoodIterator<ImageType> NeighborhoodIteratorType;
typedef itk::RGBPixel<unsigned char> RGBPixelType;
typedef itk::Image<RGBPixelType> RGBImageType;
#endif