Skip to content

Commit

Permalink
fix(write-image): avoid transposing direction matrix
Browse files Browse the repository at this point in the history
Fixes #1011
  • Loading branch information
PaulHax committed Dec 6, 2023
1 parent b9fffea commit ad9ca85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/image-io/write-image.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int writeImage(itk::wasm::InputImageIO & inputImageIO, itk::wasm::OutputTextStre
{
for (unsigned int dd = 0; dd < dimension; ++dd)
{
direction[dd] = directionContainer->GetElement(dim*dimension + dd);
direction[dd] = directionContainer->GetElement(dim + dimension*dd);
}
imageIO->SetDirection(dim, direction);
imageIO->SetOrigin(dim, inputImageIOBase->GetOrigin(dim));
Expand Down

0 comments on commit ad9ca85

Please sign in to comment.