Skip to content

Commit

Permalink
BUG FIX: Crop Image Geometry now retains the proper geometry length u…
Browse files Browse the repository at this point in the history
…nits (#1046)

Signed-off-by: Joey Kleingers <[email protected]>
  • Loading branch information
joeykleingers authored Aug 13, 2024
1 parent 6a4de83 commit 5391ed6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ IFilter::PreflightResult CropImageGeometryFilter::preflightImpl(const DataStruct
std::string cellDataName = selectedCellData->getName();
ignorePaths.push_back(srcImagePath.createChildPath(cellDataName));

resultOutputActions.value().appendAction(
std::make_unique<CreateImageGeometryAction>(destImagePath, geomDims, targetOrigin, CreateImageGeometryAction::SpacingType{spacing[0], spacing[1], spacing[2]}, cellDataName));
resultOutputActions.value().appendAction(std::make_unique<CreateImageGeometryAction>(
destImagePath, geomDims, targetOrigin, CreateImageGeometryAction::SpacingType{spacing[0], spacing[1], spacing[2]}, cellDataName, srcImageGeomPtr->getUnits()));

// Now loop over each array in the source image geometry's cell attribute matrix and create the corresponding arrays
// in the destination image geometry's attribute matrix
Expand Down

0 comments on commit 5391ed6

Please sign in to comment.