Skip to content

Commit

Permalink
wip: compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov committed Jun 26, 2024
1 parent 82cce64 commit 82f3ed8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions libsrc/Itk2DicomConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,20 @@ namespace dcmqi {
}

// Shared FGs: DerivationImageSequence
if(referencesGeometryCheck && dcmDatasets.length() > 1){
FGDerivationImage *derimg = new FGDerivationImage();
OFVector<SourceImageItem*> srcimgItems;
if(referencesGeometryCheck && dcmDatasets.size() > 1){
FGDerivationImage *fgder = new FGDerivationImage();
DerivationImageItem *derimgItem;

DSRBasicCodedEntry code_seg=CODE_DCM_Segmentation_113076;
DSRBasicCodedEntry code_seg=CODE_DCM_Segmentation_113076;
CHECK_COND(fgder->addDerivationImageItem(CodeSequenceMacro(code_seg.CodeValue,code_seg.CodingSchemeDesignator,
code_seg.CodeMeaning),"",derimgItem));

derimg->addSourceImageItems(dcmDatasets,
CodeSequenceMacro(code_seg.CodeValue,code_seg.CodingSchemeDesignator, code_seg.CodeMeaning)), &srcimgItems, OFTrue /*skip file errors */);
OFVector<SourceImageItem*> srcimgItems;
derimgItem->addSourceImageItems(dcmDatasets,
CodeSequenceMacro(code_seg.CodeValue,code_seg.CodingSchemeDesignator, code_seg.CodeMeaning), srcimgItems, OFTrue /*skip file errors */);

CHECK_COND(segdoc->addForAllFrames(*derimg));
delete derimg;
CHECK_COND(segdoc->addForAllFrames(*fgder));
delete fgder;
}

// Iterate over the files and labels available in each file, create a segment for each label,
Expand Down

0 comments on commit 82f3ed8

Please sign in to comment.