PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::web::voi_lut_info Struct Reference

VOI LUT information from DICOM. More...

#include <metadata_service.h>

Collaboration diagram for kcenon::pacs::web::voi_lut_info:
Collaboration graph

Static Public Member Functions

static voi_lut_info ok ()
 Create a success result.
 
static voi_lut_info error (std::string message)
 Create an error result.
 

Public Attributes

bool success {false}
 Whether the operation succeeded.
 
std::string error_message
 Error message if failed.
 
std::vector< double > window_center
 Window center values.
 
std::vector< double > window_width
 Window width values.
 
std::vector< std::string > window_explanations
 Window explanations (optional descriptions)
 
double rescale_slope {1.0}
 Rescale slope.
 
double rescale_intercept {0.0}
 Rescale intercept.
 

Detailed Description

VOI LUT information from DICOM.

Definition at line 255 of file metadata_service.h.

Member Function Documentation

◆ error()

static voi_lut_info kcenon::pacs::web::voi_lut_info::error ( std::string message)
inlinestatic

Create an error result.

Definition at line 285 of file metadata_service.h.

285 {
286 voi_lut_info r;
287 r.success = false;
288 r.error_message = std::move(message);
289 return r;
290 }

References error_message, and success.

Referenced by kcenon::pacs::web::metadata_service::get_voi_lut().

Here is the caller graph for this function:

◆ ok()

static voi_lut_info kcenon::pacs::web::voi_lut_info::ok ( )
inlinestatic

Create a success result.

Definition at line 278 of file metadata_service.h.

278 {
279 voi_lut_info r;
280 r.success = true;
281 return r;
282 }

References success.

Referenced by kcenon::pacs::web::metadata_service::get_voi_lut().

Here is the caller graph for this function:

Member Data Documentation

◆ error_message

std::string kcenon::pacs::web::voi_lut_info::error_message

Error message if failed.

Definition at line 260 of file metadata_service.h.

Referenced by error().

◆ rescale_intercept

double kcenon::pacs::web::voi_lut_info::rescale_intercept {0.0}

Rescale intercept.

Definition at line 275 of file metadata_service.h.

275{0.0};

◆ rescale_slope

double kcenon::pacs::web::voi_lut_info::rescale_slope {1.0}

Rescale slope.

Definition at line 272 of file metadata_service.h.

272{1.0};

◆ success

bool kcenon::pacs::web::voi_lut_info::success {false}

Whether the operation succeeded.

Definition at line 257 of file metadata_service.h.

257{false};

Referenced by error(), and ok().

◆ window_center

std::vector<double> kcenon::pacs::web::voi_lut_info::window_center

Window center values.

Definition at line 263 of file metadata_service.h.

◆ window_explanations

std::vector<std::string> kcenon::pacs::web::voi_lut_info::window_explanations

Window explanations (optional descriptions)

Definition at line 269 of file metadata_service.h.

◆ window_width

std::vector<double> kcenon::pacs::web::voi_lut_info::window_width

Window width values.

Definition at line 266 of file metadata_service.h.


The documentation for this struct was generated from the following file: