|
ML_MLToDicomTools_EXPORT void | ml::MLToDicomTools::getSpacingImagePositionAndOrientationPatientFromMLWorldMatrix (MedicalImageProperties imgProps, Vector3 &pixelSpacing, Vector3 &imagePositionPatient, Vector6 &imageOrientationPatient, std::string *issueMessages=nullptr) |
| Gets DICOM compliant values for tags Pixel Spacing, Image Position Patient, and Image Orientation Patient from the ML world matrix in imgProps.
|
|
ML_MLToDicomTools_EXPORT void | ml::MLToDicomTools::setPixelData (DCMTree::TagPtr pixelDataTag, PagedImage &inImg, MLDataType overrideDataType=ML_INVALID_DATA_TYPE, double *minVal=nullptr, double *maxVal=nullptr, const SubImageBox *overrideBox=nullptr) |
| Gets an input image as pixel data with getTile from inImg and sets it as value of pixelDataTag.
|
|
ML_MLToDicomTools_EXPORT void | ml::MLToDicomTools::setVectorGridData (DCMTree::TagPtr vecGridDataTag, PagedImage &inImg) |
| Gets a floating point vector field with getTile from inImg and sets it as OF value of the vecGridDataTag.
|
|
ML_MLToDicomTools_EXPORT std::string | ml::MLToDicomTools::addAndSetSEGPixelDataTag (DCMTree::TreePtr dcmTree, const BitImage &bitImage, bool writePadded) |
| Stores the bit mask given by BitImage in newly created PixelData tag in dcmTree; it does not set any related tags such as Rows, Columns etc.
|
|
ML_MLToDicomTools_EXPORT std::string | ml::MLToDicomTools::appendImagePixelModuleTags (DCMTree::TreePtr resultTree, unsigned int samplesPerPixel, const std::string &photometricInterpretation, unsigned int rows, unsigned int columns, unsigned int bitsAllocated, unsigned int bitsStored, unsigned int highBit, unsigned int pixelRepresentation, bool writePlanarConfiguration=false, unsigned int planarConfiguration=0, bool writeMinMaxPixelValue=false, double smallestPixelValue=0, double largestPixelValue=0, MLint numberOfColorChannels=0, const std::vector< std::string > &cDimInfos=std::vector< std::string >()) |
| Appends required DICOM tags to resultTree according to DICOM standard, C.7.6.3 Image Pixel Module Attributes.
|
|
ML_MLToDicomTools_EXPORT std::string | ml::MLToDicomTools::setSegmentationBinaryImagePixelTags (DCMTree::TreePtr &dcmTree, const BitImage &inputBitImage) |
| Set Image Pixel / Segmentation Image Module Attribute tags for a binary segmentation image using setImagePixelTags() and appendImagePixelModuleTags(), specific tags for the SEG IOD and smallest/largest pixel values are not added/written.
|
|
ML_MLToDicomTools_EXPORT std::string | ml::MLToDicomTools::setSegmentationFractionalImagePixelTags (DCMTree::TreePtr &dcmTree, const PagedImage &inputBitImage) |
| Set Image Pixel / Segmentation Image Module Attribute tags for a fractional segmentation image using setImagePixelTags() and appendImagePixelModuleTags(), specific tags for the SEG IOD and smallest/largest pixel values are not added/written.
|
|
ML_MLToDicomTools_EXPORT SubImageBox | ml::MLToDicomTools::determineFrameRegion (DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos, PagedImage &inImg, Vector3 *srcImgPosPatient=nullptr, Vector3 *dstImgPosPatient=nullptr, std::string *errorMessage=nullptr, bool useFullTUDimExtentFromInImgInSliceWiseUpdate=false, AdvancedTagSetUpArgs *configParams=nullptr) |
| If possible then determine and return the region in inImg which corresponds to the region the dcmTree belongs to.
|
|
ML_MLToDicomTools_EXPORT bool | ml::MLToDicomTools::setUpPhotometricInterpretation (DCMTree::TreePtr dcmTree, MLint numColorChannels, const std::vector< std::string > &cDimInfos) |
| Evaluates the number of color channels and the cDimInfos of the input image, checks for valid settings and sets the Photometric Interpretation tags in dcmTree such that it fits best the ML image.
|
|
ML_MLToDicomTools_EXPORT std::string | ml::MLToDicomTools::setImagePixelTags (DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos, PagedImage &inImg, bool adjustSliceWise, bool reportNonOrthoWorldMatrix, AdvancedTagSetUpArgs *configParams=nullptr) |
| Gets the input image and its properties, checks whether it is DICOM-like and if yes it sets image pixel related tags such that dcmTree contains the input image afterwards.
|
|
Header file with tool functions converting ML to DICOM data structures.
- Author
- Wolf Spindler
- Date
- 2013-10-31
Definition in file mlMLToDicomTools.h.