registration between masks

42 views
Skip to first unread message

Seohan

unread,
Jun 14, 2023, 7:20:38 AMJun 14
to Plastimatch
Hi Plastimatch users,

I was trying to register a RTSTRUCT mask to another one.
The mask.nii is 3D array containing 0,1 along with the organ contour.
I used demons method like following:

[GLOBAL]
fixed = mask_fx.nii
moving = mask_mv.nii
image_out = out.nii
vf_out = vf_out.nii

[STAGE]
xform = vf
optim = demons
impl = plastimatch
demons_std = 3
demons_acceleration = 1
max_its = 500
res = 2 2 1

This code yielded an error "unhandled conversion from PLM_IMG_TYPE_ITK_INT64 to itk_float"

Additionally, I tried to warp a mask.nii using transformation vf. This try also made an same error. How can I deal with this issue?

I'll be happy to any advice.

Sharp, Gregory C.

unread,
Jun 14, 2023, 11:14:17 AMJun 14
to plast...@googlegroups.com

Hi Seohan,

 

Looks like one or both of your images is a 64-bit integer.  Probably you don’t need that for a mask.

You can convert it to an unsigned char like this:

 

plastimatch convert --input mask_fx.nii --output mask_fx_2.nii --output-type uchar

 

I’ll try to fix this in a future release to do the conversion automatically.

 

Greg

 

From: plast...@googlegroups.com <plast...@googlegroups.com> On Behalf Of Seohan
Sent: Wednesday, June 14, 2023 7:21 AM
To: Plastimatch <plast...@googlegroups.com>
Subject: [Plastimatch] registration between masks

 

        External Email - Use Caution        

--
You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/a82130ce-fa08-4c45-9625-8574d4bf4139n%40googlegroups.com.

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .


Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

Seohan

unread,
Jun 15, 2023, 4:33:44 AMJun 15
to Plastimatch
Hi Greg!
Thank you for your prompt reply.
Now it works!!

Seohan

FYI:
I leave a solution code for those who probably face this issue I met.
I revised "--output" to "--output-img".

plastimatch convert --input mask_fx.nii --output-img mask_fx_2.nii --output-type uchar

2023년 6월 15일 목요일 오전 12시 14분 17초 UTC+9에 Sharp, Gregory C.님이 작성:
Reply all
Reply to author
Forward
0 new messages