Dear Andrea,

did you check if the transform was correctly written to "TelemedTransform"? I don't know the code you are using to communicate with the device, but I would check this first.


If you are using the MITK classes for the Telemed device (Modules\US\USHardwareTelemed), there is a known issue that the image is not updated properly (see https://phabricator.mitk.org/T29131).


Best,


Alfred



Am 05.07.2022 um 10:14 schrieb Andrea Roberti:
Hello everyone,

We would like to apply a transform to an image received in real time from an Ultrasound machine that is a 2D Image.

We can apply the same transform to a .nrrd image (saved offline) and we can see that  the transform was applied correctly on the image.

This is the piece of code we are using:

                 [.........]

mitk::Convert2Dto3DImageFilter::PointermultiFilter2=mitk::Convert2Dto3DImageFilter::New();
mitk::Image::Pointerimage2d=dynamic_cast<mitk::Image*>(m_Node.at(i)->GetData());
multiFilter2->SetInput(image2d);
multiFilter2->Update();
mitk::Image::Pointerimage3d;
image3d=multiFilter2->GetOutput();
TelemedTransform->GetVtkTransform()->Update();
image3d->GetGeometry()->SetIndexToWorldTransformByVtkMatrix(TelemedTransform->GetVtkTransform()->GetMatrix());

                 [.........]


If the input is given from the US machine the variable "image2d" is like the 
code we shared and the transform is not applied.
Otherwise we use the Load method from mitk::IOUtil and it works.

What could be the problem?

Thanks in advance,
Andrea


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to