UCL / fan-slicer

Other
12 stars 2 forks source link

Config XYZ position units #3

Open ltminnovator opened 12 months ago

ltminnovator commented 12 months ago

Hello, I'm hoping to use your package to help generate data for a CT-US registration project, but I'm a little confused with how to write config files to generate new images.

For the volume bounding box and pose coordinates, are these calculated in voxels or in millimeters? And what is the origin point for the coordinate system?

jramalhinho commented 12 months ago

Hi! All values are set in millimetres and the code uses the coordinate system of the input medical image volume to be sliced. Hope this helps

Ontheroad123 commented 7 months ago

Hi! All values are set in millimetres and the code uses the coordinate system of the input medical image volume to be sliced. Hope this helps

Hello, why the pose are dealed for 9 parameters before extract slice from volume, the origin poses are 12 parameters? ''' pose_array = np.zeros((1, 9 image_num)).astype(np.float32) for p_ind in range(image_num): pose = poses[:, 4p_ind:4*(p_ind+1)]

Allocate the pose

    pose_array[0, 9*p_ind:9*(p_ind+1)] = \
        np.hstack((pose[0, 0:2], pose[0, 3],
                   pose[1, 0:2], pose[1, 3],
                   pose[2, 0:2], pose[2, 3]))

'''

Ontheroad123 commented 7 months ago

Hello, I'm hoping to use your package to help generate data for a CT-US registration project, but I'm a little confused with how to write config files to generate new images.

For the volume bounding box and pose coordinates, are these calculated in voxels or in millimeters? And what is the origin point for the coordinate system?

Hi, i also puzzled the origin point, do you have any advice?