00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HxImageSig2dDouble_h
00012 #define HxImageSig2dDouble_h
00013
00014
00015 #include "HxImageSignature.h"
00016 #include "HxPixelAllocator.h"
00017 #include "HxValueType.h"
00018
00019 #include "HxDataPtr2dScalarTem.h"
00020 #include "HxScalarDouble.h"
00021 #include "HxDataPtr2dScalarTem.h"
00022
00023
00026 class HxImageSig2dDouble : public HxImageSignature {
00027 public:
00028 typedef double PixelType;
00029 typedef HxScalarDouble ArithType;
00030 typedef HxScalarDouble ArithTypeDouble;
00031
00032 typedef HxDataPtr2dScalarTem<
00033 PixelType, ArithType> DataPtrType;
00034
00035 typedef HxPixelAllocator<PixelType> Allocator;
00036
00037 typedef HxImageSig2dDouble ProjectRangeImageSigType;
00038 typedef HxImageSig2dDouble ProjectDomainImageSigType;
00039 typedef HxImageSig2dDouble ArithImageSigType;
00040 typedef HxImageSig2dDouble ArithImageSigTypeDouble;
00041
00042 HxImageSig2dDouble();
00043
00044 enum { ID = SIG_ID(2, 1, REAL_VALUE, sizeof(PixelType) << 3) };
00045 };
00046
00047 template<>
00048 struct HxClassName<HxImageSig2dDouble> {
00049 operator HxString() {
00050 static HxImageSig2dDouble sig;
00051 return sig.toString();
00052 }
00053 };
00054
00055 inline
00056 HxImageSig2dDouble::HxImageSig2dDouble()
00057 {
00058 _imageDimensionality = 2;
00059 _pixelDimensionality = 1;
00060 _pixelType = REAL_VALUE;
00061 _pixelPrecision = sizeof(PixelType) << 3;
00062 }
00063
00064 #endif
00065