Skip to content

Commit

Permalink
Translation transform missing in UltrasoundImageCropper
Browse files Browse the repository at this point in the history
  • Loading branch information
smistad committed Oct 18, 2023
1 parent 89f72ef commit 02369fb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ void UltrasoundImageCropper::execute() {
outputImage->setCreationTimestamp(image->getCreationTimestamp());
outputImage->setFrameData("original-width", std::to_string(outputImage->getWidth()));
outputImage->setFrameData("original-height", std::to_string(outputImage->getHeight()));
outputImage->setTransform(Transform::create(Vector3f(m_offsetX*m_spacing.x(), m_offsetY*m_spacing.y(), 0.0f)));
SceneGraph::setParentNode(outputImage, image);

OpenCLImageAccess::pointer outputAccess = outputImage->getOpenCLImageAccess(ACCESS_READ_WRITE, device);

Expand Down

0 comments on commit 02369fb

Please sign in to comment.