#include <itkISQHeaderIO.h>
Definition at line 29 of file itkISQHeaderIO.h.
◆ ReadDateValues()
| void itk::ISQHeaderIO::ReadDateValues |
( |
const int | year, |
|
|
const int | month, |
|
|
const int | day, |
|
|
const int | hour, |
|
|
const int | minute, |
|
|
const int | second, |
|
|
const int | milli ) |
|
private |
Read date into creation and modification date strings
- Parameters
-
| year | The Gregorian year. |
| month | The Gregorian month (1-12). |
| day | The Gregorian day (1-31). |
| hour | The hour (0-23). |
| minute | The minute (0-59). |
| second | The second (0-59). |
| milli | The milliseconds (0-999). |
◆ ReadDimensionData()
| bool itk::ISQHeaderIO::ReadDimensionData |
( |
ISQEncodedPreHeader * | imageData | ) |
|
|
private |
Parse and Save pixel and physical dimension values Values are converted into appropriate units
- See also
- unit conversions in itkScancoImageIO.h
- Parameters
-
| imageData | encoded data of at least 24 bytes to read from |
- Returns
- true if the file is a RAD file based on the dimension data, false otherise
◆ ReadExtendedHeader()
| void itk::ISQHeaderIO::ReadExtendedHeader |
( |
const char * | buffer, |
|
|
unsigned long | length ) |
|
private |
Read in extended header data This may include a multi-header section with calibration data
- Parameters
-
| buffer | pointer to start of extended header data |
| length | length of extended header, this can be calculated from the data offset found in the last 4 bytes of the main header block |
- Note
- length must be at least 3 blocks
-
buffer must be at least length bytes
◆ ReadHeader()
| unsigned long itk::ISQHeaderIO::ReadHeader |
( |
std::ifstream & | infile | ) |
|
|
overridevirtual |
Read the header from an infile. Fills in the m_HeaderData structure with the header information.
- Parameters
-
| infile | The input file stream to read the header from. |
- Exceptions
-
| std::runtime_error | if the file cannot be opened or read. |
- Note
- Overrides base class virtual method
Reimplemented from itk::ScancoHeaderIO.
◆ ReadISQHeader()
| void itk::ISQHeaderIO::ReadISQHeader |
( |
ISQEncodedHeaderBlock * | headerData | ) |
|
|
private |
Read ISQ header values and convert units appropriately
- See also
- unit conversions in itkScancoImageIO.h
- Parameters
-
| headerData | struct holding encoded ISQ header data |
◆ ReadRADHeader()
| void itk::ISQHeaderIO::ReadRADHeader |
( |
RADEncodedHeaderBlock * | headerData | ) |
|
|
private |
Read RAD header values and convert units appropriately
- See also
- unit conversions in itkScancoImageIO.h
- Parameters
-
| headerData | struct holding encoded RAD header data |
◆ ScancoHeaderIO()
| itk::ScancoHeaderIO::ScancoHeaderIO |
( |
itkScancoHeaderData * | headerData, |
|
|
std::string | filename = "" ) |
Constructor that initializes the header data pointer. If the pointer is null, the object will fail to be created and will throw an exception.
- Parameters
-
| headerData | Pointer to the location to store the header data |
- Note
- m_RawHeader will be overwritten on read and/or write
- Parameters
-
| filename | optional filename to read the header from or write to. If no filename is provided, it can be specified later using ReadHeader or WriteHeader |
- See also
- ReadHeader(std::string filename) and WriteHeader(std::string filename)
- Exceptions
-
| std::runtime_error | if headerData is null. |
◆ WriteExtendedHeader()
| unsigned long itk::ISQHeaderIO::WriteExtendedHeader |
( |
std::ofstream & | outfile | ) |
|
|
private |
Write Calibration data to extended header blocks
- Parameters
-
| outfile | file to write data to |
- Note
- requires first block (512 bytes) to be written with header data
- Returns
- number of bytes written to the file
◆ WriteHeader()
| unsigned long itk::ISQHeaderIO::WriteHeader |
( |
std::ofstream & | outfile, |
|
|
unsigned long | imageSize ) |
|
overridevirtual |
Write the header to an open file stream.
- Parameters
-
| outfile | Pointer to an open std::ofstream where the header will be written. |
| imageSize | size of the image that will be written after the header, in bytes |
- Exceptions
-
| std::runtime_error | if headerData is null. |
- Returns
- number of bytes written to the file.
Reimplemented from itk::ScancoHeaderIO.
◆ m_HeaderSize
| unsigned long itk::ISQHeaderIO::m_HeaderSize |
|
private |
The documentation for this class was generated from the following file: