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

ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction #1023

Closed
N-Dekker opened this issue Jan 22, 2024 · 1 comment · Fixed by #1024
Closed

Comments

@N-Dekker
Copy link
Member

The ComputeImageExtremaFilter::SameGeometry() (which is used to optimize ThreadedGenerateDataImageSpatialMask) now only takes Size and Origin into account, when comparing the input image and the mask:

ComputeImageExtremaFilter<TInputImage>::SameGeometry()
{
if (this->GetInput()->GetLargestPossibleRegion().GetSize() ==
this->m_ImageSpatialMask->GetImage()->GetLargestPossibleRegion().GetSize() &&
this->GetInput()->GetOrigin() == this->m_ImageSpatialMask->GetImage()->GetOrigin())
{
this->m_SameGeometry = true;
}
}

It should also include Index, Spacing, and Direction. As discussed at our internal weekly sprint meeting, with @stefanklein and @mstaring

N-Dekker added a commit that referenced this issue Jan 23, 2024
Tests that changes of Spacing or Direction of the mask may affect the results of ComputeImageExtremaFilter.

Supports issue #1023 "ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction"
N-Dekker added a commit that referenced this issue Jan 23, 2024
Tests that changes of Spacing or Direction of the mask may affect the results of ComputeImageExtremaFilter.

Supports issue #1023 "ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction"
N-Dekker added a commit that referenced this issue Jan 23, 2024
Fixes issue #1023 "ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction"

Tested that changes of Spacing or Direction of the mask may indeed affect the results of ComputeImageExtremaFilter.
N-Dekker added a commit that referenced this issue Jan 27, 2024
Fixes issue #1023 "ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction"

Tested that changes of Spacing or Direction of the mask may indeed affect the results of ComputeImageExtremaFilter.
N-Dekker added a commit that referenced this issue Jan 29, 2024
Fixes issue #1023 "ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction"

Tested that changes of Spacing or Direction of the mask may indeed affect the results of ComputeImageExtremaFilter.
@N-Dekker
Copy link
Member Author

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

Successfully merging a pull request may close this issue.

1 participant