ネームスペース | 関数
DICOM画像入出力
画像入出力

ネームスペース

namespace  mist::dicom
 DICOMファイルを操作する関数・クラスを含む名前空間

関数

template<class T , class Allocator >
bool mist::read_dicom (array2< T, Allocator > &image, const std::string &filename)
 DICOMデータを画像コンテナに読み込む

説明

次のヘッダをインクルードする
#include <mist/io/dicom.h>

関数

template<class T , class Allocator >
bool mist::read_dicom ( array2< T, Allocator > &  image,
const std::string &  filename 
)

DICOMデータを画像コンテナに読み込む

覚え書き
本処理では,不要なタグは全て取り除かれてしまうため,必要なデータがある場合は,本関数内を参考にして自作してください
引数
[out]image… 出力画像
[in]filename… 入力ファイル名
戻り値
true… DICOMファイルの処理に成功
false… DICOMファイルではないか,処理できないタグ・データが存在する場合

参照先 mist::dicom::dicom_image_info::bits_allocated, mist::dicom::dicom_image_info::bits_stored, mist::dicom::dicom_image_info::cols, mist::dicom::dicom_image_info::compression_type, mist::dicom::dicom_tag_container::contain(), mist::dicom::dicom_element::data, mist::dicom::decode(), mist::from_current_endian(), mist::dicom::get_dicom_info(), mist::array2< T, Allocator >::height(), mist::dicom::JPEG, mist::dicom::JPEG2000, mist::dicom::JPEGLS, mist::dicom::MONOCHROME1, mist::dicom::MONOCHROME2, mist::dicom::dicom_element::num_bytes, mist::dicom::PALETTE_COLOR, mist::dicom::dicom_image_info::photometric_type, mist::dicom::dicom_image_info::pixel_spacing_x, mist::dicom::dicom_image_info::pixel_spacing_y, mist::dicom::read_dicom_tags(), mist::dicom::dicom_image_info::rescale_intercept, mist::array2< T, Allocator >::resize(), mist::array1< T, Allocator >::reso1(), mist::array2< T, Allocator >::reso2(), mist::dicom::RGB, mist::dicom::RLE, mist::dicom::dicom_image_info::rows, mist::array2< T, Allocator >::width(), mist::dicom::dicom_image_info::window_center, と mist::dicom::dicom_image_info::window_width.


Generated on Wed Nov 12 2014 19:44:28 for MIST by doxygen 1.8.1.2