Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding "fix overlapping slices w/ no SpacingBetweenSlices tag" #523

Open
AivenJC opened this issue Oct 29, 2024 · 1 comment
Open

Regarding "fix overlapping slices w/ no SpacingBetweenSlices tag" #523

AivenJC opened this issue Oct 29, 2024 · 1 comment

Comments

@AivenJC
Copy link

AivenJC commented Oct 29, 2024

Regarding "fix overlapping slices w/ no SpacingBetweenSlices tag"

The commit on Mar 4, 2024 to ct.py by jrkerns seems to be incomplete at least w.r.t. this function:

def passed_thickness(self) -> bool:
    """Whether the slice thickness was within tolerance from nominal."""
    return (
        self.slice_thickness - self.thickness_tolerance
        < self.meas_slice_thickness
        < self.slice_thickness + self.thickness_tolerance
    )

"self.slice_thickness" is still the dicom property "SliceThickness" where "self.meas_slice_thickness" inherently uses "self.slice_spacing" as newly defined during the measurement. I.e. it seems that two different values are being compared and the test always fails incorrectly for datasets with overlapping slices which lack the Spacing DICOM tag.

This way the reference value "self.slice_spacing" should be properly compared to the corresponding measured value "self.meas_slice_thickness":

def passed_thickness(self) -> bool:
    """Whether the slice thickness was within tolerance from nominal."""
    return (
        self.slice_spacing - self.thickness_tolerance
        < self.meas_slice_thickness
        < self.slice_spacing + self.thickness_tolerance
    )
@jrkerns
Copy link
Owner

jrkerns commented Nov 1, 2024

I'm not following the statement: "where "self.meas_slice_thickness" inherently uses "self.slice_spacing" as newly defined during the measurement." Can you share a file set that this occurs with so I can potentially add to the test suite? Thanks! https://forms.gle/As9pnsmvKBvDcRUx6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants