Page MenuHomePhabricator

modification_pixeltype.diff

Authored By
fritzsck
Oct 12 2009, 10:08 AM
Size
2 KB
Referenced Files
None
Subscribers
None

modification_pixeltype.diff

Index: Algorithms/mitkImageCastPart3.cpp
===================================================================
--- Algorithms/mitkImageCastPart3.cpp (revision 19441)
+++ Algorithms/mitkImageCastPart3.cpp (working copy)
@@ -103,6 +103,7 @@
//CAST_N_VEC(11)
//CAST_N_VEC(12)
CAST_N_VEC(3)
+CAST_N_VEC(6)
CAST_N_VEC(42)
CAST_N_VEC(92)
CAST_N_VEC(162)
Index: Algorithms/mitkImageCastPart4.cpp
===================================================================
--- Algorithms/mitkImageCastPart4.cpp (revision 19441)
+++ Algorithms/mitkImageCastPart4.cpp (working copy)
@@ -131,6 +131,7 @@
//TYPE_N_VEC(11)
//TYPE_N_VEC(12)
TYPE_N_VEC(3)
+TYPE_N_VEC(6)
TYPE_N_VEC(42)
TYPE_N_VEC(92)
TYPE_N_VEC(162)
Index: IO/mitkPixelType.cpp
===================================================================
--- IO/mitkPixelType.cpp (revision 19441)
+++ IO/mitkPixelType.cpp (working copy)
@@ -22,8 +22,7 @@
#include <itkRGBPixel.h>
#include <itkRGBAPixel.h>
#include <itkCovariantVector.h>
-//#include "itkDiffusionTensor3D.h"
-//#include "itkConfidenceDiffusionTensor3D.h"
+#include "itkDiffusionTensor3D.h"
#define HUNDRED_VECS(HUN) \
TEN_VECS(HUN) \
@@ -191,7 +190,7 @@
SET_TYPE(char, mitkIpPicInt)
SET_TYPE(unsigned char, mitkIpPicUInt)
- /*
+
if ( *m_TypeId == typeid( itk::DiffusionTensor3D<float> ) )
{
m_TypeId = & typeid( float );
@@ -208,26 +207,8 @@
m_Bpe = sizeof(double) * 8 * m_NumberOfComponents;
m_ItkTypeId = &typeid( itk::DiffusionTensor3D<double> );
}
- else if ( *m_TypeId == typeid( itk::ConfidenceDiffusionTensor3D<float> ) )
+ else if ( *m_TypeId == typeid( itk::RGBPixel<unsigned char> ) )
{
- m_TypeId = & typeid( float );
- m_NumberOfComponents *= 7;
- m_Type = mitkIpPicFloat;
- m_Bpe = sizeof(float) * 8 * m_NumberOfComponents;
- m_ItkTypeId = &typeid( itk::ConfidenceDiffusionTensor3D<float> );
- }
- else if ( *m_TypeId == typeid( itk::ConfidenceDiffusionTensor3D<double> ) )
- {
- m_TypeId = & typeid( double );
- m_NumberOfComponents *= 7;
- m_Type = mitkIpPicFloat;
- m_Bpe = sizeof(double) * 8 * m_NumberOfComponents;
- m_ItkTypeId = &typeid( itk::ConfidenceDiffusionTensor3D<double> );
- }
- else
- */
- if ( *m_TypeId == typeid( itk::RGBPixel<unsigned char> ) )
- {
m_Type = mitkIpPicUInt;
m_NumberOfComponents = 3;
m_Bpe = sizeof(unsigned char) * 8 * m_NumberOfComponents;
@@ -259,6 +240,7 @@
//N_VEC(12)
if(false){}
N_VEC(3)
+ N_VEC(6)
N_VEC(42)
N_VEC(92)
N_VEC(162)

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
211
Default Alt Text
modification_pixeltype.diff (2 KB)

Event Timeline

modification of pixeltype and imagecast