Dear ImFusion team,
I hope that you are doing well.
I am using the OpenIGTLink plugin to get an image stream from my python server. In the beginning, ImFusion Suite can get the data and visualize it correctly. However, once I import a tracking stream and click it in the Data window, the imagestream is empty. To show this problem, please check this video
I also found if I have 2 data in the Data
window (one ImageStream from OpenIGTLink, and one any other data), once I click the other data, the ImageStream data is empty. But the bug does not exit if I use a normal ImageStream (e.g. Fake ImageStream).
Due to this problem, I could not do the US calibration wizard since US ImageStream is not available in the wizard.
Could you please provide some help? This problem exists in Suite v2.42 and v2.47
Best,
Luohong
The following is my Python server code:
“”"
Image sending server
Simple application that starts a server that provides an image stream with a bright circle moving
“”"
import pyigtl # pylint: disable=import-error
import cv2
from time import sleep
import numpy as np
from math import sinserver = pyigtl.OpenIGTLinkServer(port=18944)
image_size = [500, 300]
radius = 60timestep = 0
while True:if not server.is_connected(): # Wait for client to connect sleep(0.1) continue timestep += 1 voxels=cv2.imread(f"***/UltrasoundImages/{timestep%40}.png") voxels = np.transpose(voxels, axes=(2, 0, 1)) # Send image image_message = pyigtl.ImageMessage(voxels, device_name="Image") server.send_message(image_message, wait=True) print(f"sent out image: {timestep}")