00001 //-------------------------------------------------- 00012 //-------------------------------------------------- 00013 00014 #include "pixel_metadata.h" 00015 00016 namespace imedgine 00017 { 00018 //-------------------------------------------------- 00019 00020 PixelMetadata::PixelMetadata(unsigned char num_dimensions, 00021 dataset_position_type size, spacings_type spacings, 00022 unsigned char num_bytes_per_pixel) 00023 : num_dimensions_(num_dimensions), 00024 size_(size), 00025 spacings_(spacings), 00026 num_bytes_per_pixel_(num_bytes_per_pixel) 00027 { 00028 } 00029 00030 //-------------------------------------------------- 00031 00032 PixelMetadata::~PixelMetadata() 00033 { 00034 } 00035 00036 //-------------------------------------------------- 00037 00038 dataset_position_type const& PixelMetadata::getSize() const 00039 { 00040 return size_; 00041 } 00042 00043 //-------------------------------------------------- 00044 00045 spacings_type const& PixelMetadata::getSpacings() const 00046 { 00047 return spacings_; 00048 } 00049 00050 //-------------------------------------------------- 00051 00052 unsigned char PixelMetadata::getNumBytesPerPixel() const 00053 { 00054 return num_bytes_per_pixel_; 00055 } 00056 00057 00058 } 00059