Andreas Tille pushed to branch upstream at Debian Med / ants
Commits:
299c98e2 by Andreas Tille at 2026-09-02T16:31:45+02:00
New upstream version 2.6.5+dfsg
- - - - -
2 changed files:
- Examples/CreateTiledMosaic.cxx
- Version.cmake
Changes:
=====================================
Examples/CreateTiledMosaic.cxx
=====================================
@@ -337,9 +337,8 @@ CreateMosaic(itk::ants::CommandLineParser * parser)
{
if (d != direction)
{
- croppedSliceSize[count] = std::min(
- size[d] - (itk::Math::abs(lowerBoundVector[count]) +
itk::Math::abs(upperBoundVector[count])),
- size[d]);
+ croppedSliceSize[count] =
+ size[d] - (itk::Math::abs(lowerBoundVector[count]) +
itk::Math::abs(upperBoundVector[count]));
croppedSliceIndex[count] = itk::Math::abs(lowerBoundVector[count]);
count++;
@@ -390,6 +389,7 @@ CreateMosaic(itk::ants::CommandLineParser * parser)
{
std::string offsetString =
padWidthString.substr(padWidthString.find(std::string("-")) + 1);
offset = parser->Convert<int>(offsetString);
+ // make offset negative because the minus sign in the string is the
delimiter
offset *= -1;
}
@@ -400,7 +400,7 @@ CreateMosaic(itk::ants::CommandLineParser * parser)
if (d != direction)
{
croppedSliceSize[count] = std::min(maskRegion.GetSize()[d] + 2 *
offset, size[d]);
- croppedSliceIndex[count] = maskRegion.GetIndex()[d] - offset;
+ croppedSliceIndex[count] = std::max(0,
static_cast<int>(maskRegion.GetIndex()[d] - offset));
count++;
}
}
=====================================
Version.cmake
=====================================
@@ -11,7 +11,7 @@ include(ProjectSourceVersion)
set(${PROJECT_NAME}_VERSION_MAJOR "2")
set(${PROJECT_NAME}_VERSION_MINOR "6")
-set(${PROJECT_NAME}_VERSION_PATCH "4")
+set(${PROJECT_NAME}_VERSION_PATCH "5")
# set(${PROJECT_NAME}_VERSION_TWEAK "")
# The hash is the current git sha1 hash tag of the HEAD.
View it on GitLab:
https://salsa.debian.org/med-team/ants/-/commit/299c98e2cb111919cc44fdafb00cc9dc7768cf69
--
View it on GitLab:
https://salsa.debian.org/med-team/ants/-/commit/299c98e2cb111919cc44fdafb00cc9dc7768cf69
You're receiving this email because of your account on salsa.debian.org. Manage
all notifications: https://salsa.debian.org/-/profile/notifications | Help:
https://salsa.debian.org/help
_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit