Read DICOM objects from a stream.
More...
#include <Reader.h>
|
| | Reader (std::istream &stream, std::string const &transfer_syntax, bool keep_group_length=false) |
| | Build a reader, derive byte ordering and explicit-ness of VR from transfer syntax.
|
| std::shared_ptr< DataSet > | read_data_set (std::function< bool(Tag const &)> halt_condition=[](Tag const &) { return false;}) const |
| | Read a data set.
|
| Tag | read_tag () const |
| | Read a tag.
|
| uint32_t | read_length (VR vr) const |
| | Read the length of an element.
|
| Element | read_element (Tag const &tag=Tag(0xffff, 0xffff), std::shared_ptr< DataSet const > data_set=std::make_shared< DataSet >()) const |
| | Read an element (VR and value), try to guess the VR from the tag, partially read data set, and transfer syntax for implicit VR transfer syntaxes.
|
|
| template<typename T> |
| static T | read_binary (std::istream &stream, ByteOrdering ordering) |
| | Read binary data from an stream encoded with the given endianness, ensure stream is still good.
|
| static Value::Binary | read_encapsulated_pixel_data (std::istream &stream, ByteOrdering byte_ordering, std::string transfer_syntax, bool keep_group_length=false) |
| | Read pixel data in encapsulated form.
|
| static void | ignore (std::istream &stream, std::streamsize size) |
| | Ignore data from a stream, ensure stream is still good.
|
| static std::pair< std::shared_ptr< DataSet >, std::shared_ptr< DataSet > > | read_file (std::istream &stream, bool keep_group_length=false, std::function< bool(Tag const &)> halt_condition=[](Tag const &) { return false;}) |
| | Return the meta-data header and data set stored in the stream.
|
Read DICOM objects from a stream.
◆ Reader()
| odil::Reader::Reader |
( |
std::istream & | stream, |
|
|
std::string const & | transfer_syntax, |
|
|
bool | keep_group_length = false ) |
Build a reader, derive byte ordering and explicit-ness of VR from transfer syntax.
◆ ignore()
| void odil::Reader::ignore |
( |
std::istream & | stream, |
|
|
std::streamsize | size ) |
|
static |
Ignore data from a stream, ensure stream is still good.
◆ read_binary()
template<typename T>
| T odil::Reader::read_binary |
( |
std::istream & | stream, |
|
|
ByteOrdering | ordering ) |
|
static |
Read binary data from an stream encoded with the given endianness, ensure stream is still good.
◆ read_data_set()
| std::shared_ptr< DataSet > odil::Reader::read_data_set |
( |
std::function< bool(Tag const &)> | halt_condition = [](Tag const &) { return false;} | ) |
const |
◆ read_element()
| Element odil::Reader::read_element |
( |
Tag const & | tag = Tag(0xffff, 0xffff), |
|
|
std::shared_ptr< DataSet const > | data_set = std::make_shared< DataSet >() ) const |
Read an element (VR and value), try to guess the VR from the tag, partially read data set, and transfer syntax for implicit VR transfer syntaxes.
◆ read_encapsulated_pixel_data()
| Value::Binary odil::Reader::read_encapsulated_pixel_data |
( |
std::istream & | stream, |
|
|
ByteOrdering | byte_ordering, |
|
|
std::string | transfer_syntax, |
|
|
bool | keep_group_length = false ) |
|
static |
Read pixel data in encapsulated form.
◆ read_file()
| std::pair< std::shared_ptr< DataSet >, std::shared_ptr< DataSet > > odil::Reader::read_file |
( |
std::istream & | stream, |
|
|
bool | keep_group_length = false, |
|
|
std::function< bool(Tag const &)> | halt_condition = [](Tag const &) { return false;} ) |
|
static |
Return the meta-data header and data set stored in the stream.
◆ read_length()
| uint32_t odil::Reader::read_length |
( |
VR | vr | ) |
const |
Read the length of an element.
◆ read_tag()
| Tag odil::Reader::read_tag |
( |
| ) |
const |
◆ byte_ordering
◆ explicit_vr
| bool odil::Reader::explicit_vr |
Explicit-ness of the Value Representations.
◆ keep_group_length
| bool odil::Reader::keep_group_length |
Flag to keep or discard group length tags.
◆ stream
| std::istream& odil::Reader::stream |
◆ transfer_syntax
| std::string odil::Reader::transfer_syntax |
Transfer syntax used to read the file.
The documentation for this class was generated from the following file:
- /build/odil-X1O2nS/odil-0.13.0/src/odil/Reader.h