Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on: [push,pull_request]

jobs:
cxx-build-workflow:
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@v5.4.0
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-cxx.yml@v5.4.2
with:
itk-cmake-options: '-DModule_MorphologicalContourInterpolation_BUILD_EXAMPLES:BOOL=ON'
itk-module-deps: 'RLEImage@v1.0.2'

python-build-workflow:
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@v5.4.0
uses: InsightSoftwareConsortium/ITKRemoteModuleBuildTestPackageAction/.github/workflows/build-test-package-python.yml@v5.4.2
with:
test-notebooks: false
secrets:
Expand Down
8 changes: 4 additions & 4 deletions include/itkMorphologicalContourInterpolator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ MorphologicalContourInterpolator< TImage >::Dilate1( typename BoolSliceType::Poi
thread_local bool initialized = false;
thread_local typename CrossDilateType::Pointer crossDilator = CrossDilateType::New();
thread_local typename BallDilateType::Pointer ballDilator = BallDilateType::New();
thread_local CrossStructuringElementType crossStructuringElement;
thread_local BallStructuringElementType ballStructuringElement;
thread_local CrossStructuringElementType crossStructuringElement;
thread_local BallStructuringElementType ballStructuringElement;
using AndFilterType = AndImageFilter< BoolSliceType, BoolSliceType, BoolSliceType >;
thread_local typename AndFilterType::Pointer andFilter = AndFilterType::New();

Expand Down Expand Up @@ -1309,7 +1309,7 @@ MorphologicalContourInterpolator< TImage >::InterpolateBetweenTwo( int axis, TIm
--iCounts[p->first];
--jCounts[p->second];
pairs.erase( p++ );
} // M-to-1
} // M-to-1
else if ( jCounts[p->second] == 1 ) // 1-to-N
{
for ( auto rest = pairs.begin(); rest != pairs.end(); ++rest )
Expand Down Expand Up @@ -1537,7 +1537,7 @@ MorphologicalContourInterpolator< TImage >::GenerateData()
this->InterpolateAlong( a, m_Output, a / float( TImage::ImageDimension ), ( a + 1 ) / float( TImage::ImageDimension ) );
}
}
} // interpolate along all axes
} // interpolate along all axes
else // interpolate along the specified axis
{
this->InterpolateAlong( m_Axis, m_Output, 0.0f, 1.0f );
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ build-backend = "scikit_build_core.build"

[project]
name = "itk-morphologicalcontourinterpolation"
version = "2.0.0"
version = "2.1.0"
description = "A morphology-based approach for interslice interpolation of anatomical slices from volumetric images."
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{ name = "Dženan Zukić", email = "community@itk.org" },
{ name = "Matt McCormick", email = "matt@mmmccormick.com" },
]
keywords = [
"itk",
Expand Down
Loading