Definitions

ageUnit_t

enum imebra::ageUnit_t

Used by setAge() and getAge() to specify the unit of the age value.

Values:

imebradays = 'D'

the age value is in days

imebraweeks = 'W'

the age value is in weeks

imebramonths = 'M'

the age value is in months

imebrayears = 'Y'

the age value is in years

imageQuality_t

enum imebra::imageQuality_t

This enumeration specifies the quality of the compressed image when a lossy compression format is used.

Values:

imebraveryHigh = 0

the image is saved with very high quality. No subsampling is performed and no quantization

imebrahigh = 100

the image is saved with high quality. No subsampling is performed. Quantization ratios are low

imebraaboveMedium = 200

the image is saved in medium quality. Horizontal subsampling is applied. Quantization ratios are low

imebramedium = 300

the image is saved in medium quality. Horizontal subsampling is applied. Quantization ratios are medium

imebrabelowMedium = 400

the image is saved in medium quality. Horizontal and vertical subsampling are applied. Quantization ratios are medium

imebralow = 500

the image is saved in low quality. Horizontal and vertical subsampling are applied. Quantization ratios are higher than the ratios used in the belowMedium quality

imebraveryLow = 600

the image is saved in low quality. Horizontal and vertical subsampling are applied. Quantization ratios are high

bitDepth_t

enum imebra::bitDepth_t

Defines the size (in bytes) of the memory allocated for each pixel’s color component and its representation (signed/unsigned).

This enumeration does not specify the highest bit used: in order to retrieve the highest used bit call Image::getHighBit().

The lower bit of the enumerations is 1 if it represents a signed depth, 0 if it represents an unsigned depth,

Values:

imebradepthU8 = 0

Unsigned byte.

imebradepthS8 = 1

Signed byte.

imebradepthU16 = 2

Unsigned word (2 bytes)

imebradepthS16 = 3

Signed word (2 bytes)

imebradepthU32 = 4

Unsigned double word (4 bytes)

imebradepthS32 = 5

Signed double word (4 bytes)

directoryRecordType_t

enum imebra::directoryRecordType_t

Specifies the directory item’s type.

Values:

imebrapatient
imebrastudy
imebraseries
imebraimage
imebraoverlay
imebramodality_lut
imebravoi_lut
imebracurve
imebratopic
imebravisit
imebraresults
imebrainterpretation
imebrastudy_component
imebrastored_print
imebrart_dose
imebrart_structure_set
imebrart_plan
imebrart_treat_record
imebrapresentation
imebrawaveform
imebrasr_document
imebrakey_object_doc
imebraspectroscopy
imebraraw_data
imebraregistration
imebrafiducial
imebramrdr
imebraendOfDirectoryRecordTypes

codecType_t

enum imebra::codecType_t

Defines the data stream & images codec.

Values:

imebradicom

DICOM codec.

imebrajpeg

JPEG codec.

tagVR_t

enum imebra::tagVR_t

Enumerates the DICOM VRs (data types).

Values:

imebraAE = 0x4145

Application Entity.

imebraAS = 0x4153

Age String.

imebraAT = 0x4154

Attribute Tag.

imebraCS = 0x4353

Code String.

imebraDA = 0x4441

Date.

imebraDS = 0x4453

Decimal String.

imebraDT = 0x4454

Date Time.

imebraFL = 0x464c

Floating Point Single.

imebraFD = 0x4644

Floating Point Double.

imebraIS = 0x4953

Integer String.

imebraLO = 0x4c4f

Long String.

imebraLT = 0x4c54

Long Text.

imebraOB = 0x4f42

Other Byte String.

imebraSB = 0x5342

Non standard. Used internally for signed bytes.

imebraOD = 0x4f44

Other Double String.

imebraOF = 0x4f46

Other Float String.

imebraOL = 0x4f4c

Other Long String.

imebraOW = 0x4f57

Other Word String.

imebraPN = 0x504e

Person Name.

imebraSH = 0x5348

Short String.

imebraSL = 0x534c

Signed Long.

imebraSQ = 0x5351

Sequence of Items.

imebraSS = 0x5353

Signed Short.

imebraST = 0x5354

Short Text.

imebraTM = 0x544d

Time.

imebraUC = 0x5543

Unlimited characters.

imebraUI = 0x5549

Unique Identifier.

imebraUL = 0x554c

Unsigned Long.

imebraUN = 0x554e

Unknown.

imebraUR = 0x5552

Unified Resource Identifier.

imebraUS = 0x5553

Unsigned Short.

imebraUT = 0x5554

Unlimited Text.

fileParts_t

typedef std::vector<std::string> imebra::fileParts_t

drawBitmapType_t

enum imebra::drawBitmapType_t

Defines the type of the bitmap generated by DrawBitmap.

Values:

imebradrawBitmapRGB = 0

Generates a BMP image where each pixel contains 3 bytes (R, G and B)

imebradrawBitmapBGR = 1

Generates a BMP image where each pixel contains 3 bytes (B, G and R)

imebradrawBitmapRGBA = 2

Generates a BMP image where each pixel contains 4 bytes (R, G, B and A)

imebradrawBitmapBGRA = 3

Generates a BMP image where each pixel contains 4 bytes (B, G, R and A)

Age

struct imebra::Age

Specifies an age, in days, weeks, months or years.

Public Functions

imebra::AgeAge(std::uint32_t initialAge, ageUnit_t initialUnits)

Constructor.

Parameters
  • initialAge: the initial age to assign to the object, in days, weeks, months or years, depending on the parameter initialUnits
  • initialUnits: the units of the value in initialAge

double imebra::Ageyears() const

Return the age in years.

Return
the stored age converted to years.

Public Members

std::uint32_t imebra::Ageage

The age, in days, weeks, months or years according to units.

ageUnit_t imebra::Ageunits

The units of the value in age.

Date

struct imebra::Date

Stores a Date, Time or Date/Time value.

Public Functions

imebra::DateDate(const std::uint32_t initialYear, const std::uint32_t initialMonth, const std::uint32_t initialDay, const std::uint32_t initialHour, const std::uint32_t initialMinutes, const std::uint32_t initialSeconds, const std::uint32_t initialNanoseconds, const std::int32_t initialOffsetHours, const std::int32_t initialOffsetMinutes)

Constructor.

Initialize the Date structure with the specified values.

Parameters
  • initialYear: year (0 = unused)
  • initialMonth: month (1…12, 0 = unused)
  • initialDay: day of the month (1…31, 0 = unused)
  • initialHour: hour (0…23)
  • initialMinutes: minutes (0…59)
  • initialSeconds: seconds (0…59)
  • initialNanoseconds: nanoseconds
  • initialOffsetHours: hours offset from UTC
  • initialOffsetMinutes: minutes offset from UTC

Public Members

std::uint32_t imebra::Dateyear

Year (0 = unused)

std::uint32_t imebra::Datemonth

Month (1…12, 0 = unused)

std::uint32_t imebra::Dateday

Day (1…12, 0 = unused)

std::uint32_t imebra::Datehour

Hours.

std::uint32_t imebra::Dateminutes

Minutes.

std::uint32_t imebra::Dateseconds

Seconds.

std::uint32_t imebra::Datenanoseconds

Nanoseconds.

std::int32_t imebra::DateoffsetHours

Offset hours from UTC.

std::int32_t imebra::DateoffsetMinutes

Offset minutes from UTC.

VOIDescription

struct imebra::VOIDescription

Stores a VOI Description and Settings.

The VOI settings can be retrieved from a DataSet with DataSet::getVOIs(), which returns all the VOI settings registered in the DataSet.

Once retrieved, the VOI center and width can be passed to the VOILUT transform that apply the VOI settings to an Image.

Public Members

double imebra::VOIDescriptioncenter

The VOI center.

double imebra::VOIDescriptionwidth

The VOI width.

std::wstring imebra::VOIDescriptiondescription

The VOI’s description.

vois_t

typedef std::vector<VOIDescription> imebra::vois_t

A collection of VOI settings.

The VOI settings registered in the dataset can be retrieved with DataSet::getVOIs().

dimseCommandType_t

enum imebra::dimseCommandType_t

DIMSE command types.

Values:

imebracStore = 0x1

C-STORE.

imebracGet = 0x10

C-GET.

imebracFind = 0x20

C-FIND.

imebracMove = 0x21

C-MOVE.

imebracCancel = 0xfff

C-CANCEL.

imebracEcho = 0x30

C-ECHO.

imebranEventReport = 0x100

N-EVENT_REPORT.

imebranGet = 0x110

N-GET.

imebranSet = 0x120

N-SET.

imebranAction = 0x130

N-ACTION.

imebranCreate = 0x140

N-CREATE.

imebranDelete = 0x150

N-DELETE.

imebraresponse = 0x8000

Bit set for response messages.

dimseCommandPriority_t

enum imebra::dimseCommandPriority_t

DIMSE command priorities.

Values:

imebralow = 0x2

Low priority.

imebramedium = 0

Medium priority.

imebrahigh = 0x1

High priority.

dimseStatusCode_t

enum imebra::dimseStatusCode_t

The DICOM response status code.

Values:

imebrasuccess = 0

Success.

imebraunsupportedOptionalAttributes = 0x0001

Requested optional Attributes are not supported.

imebracannotUpdateperformedProcedureStepObject = 0x0110

Performed Procedure Step Object may no longer be updated.

imebraunsupportedSOPClass = 0x0122

SOP Class not Supported.

imebraoutOfResources = 0xa700

Refused: Out of resources.

imebraoutOfResourcesCannotCalculateNumberOfMatches = 0xa701

Refused: Out of Resources - Unable to calculate number of matches.

imebraoutOfResourcesCannotPerformSubOperations = 0xa702

Refused: Out of Resources - Unable to perform sub-operations.

imebramoveDestinationUnknown = 0xa801

Refused: Move Destination unknown.

imebraidentifierDoesNotMatchSOPClass = 0xa900

Identifier does not match SOP Class.

imebrasubOperationCompletedWithErrors = 0xb000

Sub-operations Complete - One or more Failures.

imebraelementDiscarded = 0xb006

Element discarded.

imebradatasetDoesNotMatchSOPClass = 0xb007

Data Set does not match SOP Class.

imebraUPSAlreadyCanceled = 0xb304

The UPS is already in the requested state of CANCELED.

imebracoercedInvalidValuesToValidValues = 0xb305

Coerced invalid values to valid values.

imebraUPSStateAlreadyCompleted = 0xb306

The UPS is already in the requested state of COMPLETED.

imebraunableToProcess = 0xc000

Unable to process.

imebramoreThanOneMatchFound = 0xc100

More than one match found,.

imebraCannotSupportRequestedTemplate = 0xc200

Unable to support requested template.

imebraUPSNotUpdated = 0xc300

Refused: The UPS may no longer be updated.

imebratransactionUIDNotProvided = 0xc301

Refused: The correct Transaction UID was not provided.

imebraUPSAlreadyInProgress = 0xc302

Refused: The UPS is already IN PROGRESS.

imebracanScheduleOnlyWithNCreate = 0xc303

Refused: The UPS may only become SCHEDULED via N-CREATE, not N-SET or N-ACTION.

imebraUPSCannotChangeState = 0xc304

Refused: The UPS has not met final state requirements for the requested state change.

imebrainstanceUIDDoesNotExist = 0xc307

Specified SOP Instance UID does not exist or is not a UPS Instance managed by this SCP.

imebraunknownAETitle = 0xc308

Receiving AE-TITLE is Unknown to this SCP.

imebraUPSNotSchedule = 0xc309

Refused: The provided value of UPS State was not SCHEDULED.

imebraUPSNotInProgress = 0xc310

Refused: The UPS is not yet in the “IN PROGRESS” state.

imebraUPSAlreadyCompleted = 0xc311

Refused: The UPS is already COMPLETED.

imebraperformerCannotBeContacted = 0xc312

Refused: The performer cannot be contacted.

imebraperformerDoesNotCancel = 0xc313

Refused: Performer chooses not to cancel.

imebraunappropriateActionForInstance = 0xc314

Refused: Specified action not appropriate for specified instance.

imebraSCPDoesNotSupportEventReports = 0xc315

Refused: SCP does not support Event Reports.

imebracanceled = 0xfe00

Terminated due to Cancel request.

imebrapending = 0xff00

Pending.

imebrapendingWithWarnings = 0xff01

Pending with warnings.

dimseStatus_t

enum imebra::dimseStatus_t

Simplified DIMSE response status code, derived from dimseStatusCode_t.

Values:

imebrasuccess

The operation was completed succesfully.

imebrawarning

The operation was completed with warnings.

imebrafailure

The operation failed.

imebracancel

The operation was canceled.

imebrapending

The operation is still running.

attributeIdentifierList_t

typedef std::vector<tagId_t> imebra::attributeIdentifierList_t

List of tag ids.