Skip to content

Commit

Permalink
fix: use const pointer to input segmentations
Browse files Browse the repository at this point in the history
  • Loading branch information
jadh4v committed Jun 28, 2024
1 parent d88b025 commit 59166cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/dcmqi/Itk2DicomConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace dcmqi {
* @return A pointer to the resulting DICOM Segmentation object.
*/
static DcmDataset* itkimage2dcmSegmentation(vector<DcmDataset*> dcmDatasets,
vector<ShortImageType::Pointer> segmentations,
vector<ShortImageType::ConstPointer> segmentations,
const string &metaData,
bool skipEmptySlices=true,
bool useLabelIDAsSegmentNumber=false,
Expand Down
2 changes: 1 addition & 1 deletion libsrc/Itk2DicomConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace dcmqi {
// -------------------------------------------------------------------------------------

DcmDataset* Itk2DicomConverter::itkimage2dcmSegmentation(vector<DcmDataset*> dcmDatasets,
vector<ShortImageType::Pointer> segmentations,
vector<ShortImageType::ConstPointer> segmentations,
const string &metaData,
bool skipEmptySlices,
bool useLabelIDAsSegmentNumber,
Expand Down

0 comments on commit 59166cf

Please sign in to comment.