Skip to content

Commit

Permalink
fix(image_processing): fixed usage of ctDirPath variable in padSegToM…
Browse files Browse the repository at this point in the history
…atchCT
  • Loading branch information
strixy16 committed Dec 20, 2023
1 parent b7b452e commit 892c8d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yarea/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def padSegToMatchCT(ctDirPath:str,

# Load the CT image to align the segmentation to if not passed as argument
if ctImage == None:
ctImage = loadDicomSITK(ctFolderPath)
ctImage = loadDicomSITK(ctDirPath)

# Load in the segmentation image if not passed as argument
if alignedSegImage == None:
Expand All @@ -102,7 +102,7 @@ def padSegToMatchCT(ctDirPath:str,
alignedSegImage = alignImages(ctImage, segImage)

# Load in header information for the CT and SEG files
ctSeries = Series(ctFolderPath)
ctSeries = Series(ctDirPath)
segWithHeader = pydicom.dcmread(segFilePath, stop_before_pixels=True)

# Get the first and last reference ID for the slices of the CT that are in the SEG file
Expand Down

0 comments on commit 892c8d7

Please sign in to comment.