ScanIP masks to mesh

265 views
Skip to first unread message

mafalda couto

unread,
Sep 3, 2012, 11:30:45 AM9/3/12
to iso2mes...@googlegroups.com
Hello!
 
I've completed a segmentation in ScanIP software. I would like to know if iso2mesh is able to read the resulting mask? the output volume format is '.sfh'.
ScanIP can also export surfaces for each mask in the formats: .stl .sat .ans .inp .igs
 
If you have any sugestions so I can use this data I'll be very thankfull!
 
Best regards
Mafalda
 
 

Michael Wang

unread,
Sep 3, 2012, 12:53:12 PM9/3/12
to iso2mes...@googlegroups.com
are you trying to export the raster pixel mask?
if so, you shouldn't go through the surface mesh formats.. that's creating extra work to read in the surface into matlab and then rasterise back
you should export the currently selected mask pixels direclty from Simpleware using Export > Bitmap > Mask RAW...
you can then read in the resulting .raw file into a MATLAB array using the multibandread function in MATLAB
e.g.
>> img = multibandread('my_mask.raw',[xdim ydim zdim],'*uint8',0,'bsq','ieee-be');
>> imshow(img(:,:,1));  %check first slice

..you don't have the +FE module to mesh it directly in Simpleware?
;)

Mafalda
 
 

--
You received this message because you are subscribed to the Google Groups "iso2mesh-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/iso2mesh-users/-/jYJdyc9Z2MIJ.
To post to this group, send email to iso2mes...@googlegroups.com.
To unsubscribe from this group, send email to iso2mesh-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iso2mesh-users?hl=en.

Qianqian Fang

unread,
Sep 3, 2012, 12:53:58 PM9/3/12
to iso2mes...@googlegroups.com, mafalda couto
hi Mafalda

the iso2mesh-supported file formats can be
found at the bottom of the workflow diagram:

http://iso2mesh.sf.net/cgi-bin/index.cgi?Doc/Workflow

iso2mesh can export to a couple of your mentioned
formats (STL etc), but, unfortunately, it does not
support to import from them at this point.

My suggestion is to export your mesh with
various formats in ScanIP, open with text editor,
pick one with the simplest syntax, and write your
own parser. After all, all iso2mesh requires is the
coordinates list (node) and triangle connections
(face). It should be straightforward if you focus
on reading those fields from the file.

Let me know if I can provide more info.

Qianqian

> Best regards
> Mafalda
> --
> You received this message because you are subscribed to the Google
> Groups "iso2mesh-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/iso2mesh-users/-/jYJdyc9Z2MIJ.
> To post to this group, send email to iso2mes...@googlegroups.com.
> To unsubscribe from this group, send email to
> iso2mesh-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/iso2mesh-users?hl=en.



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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

mafalda couto

unread,
Sep 4, 2012, 7:30:24 AM9/4/12
to iso2mes...@googlegroups.com
Hi.
 
Thank you both. I was able to run Michael's funtion and generate the meshes. I do have +FE however I'm out of memory and it stops the mesh generation everytime and I was looking for a easy solution without losing the work I've done in ScanIP.
For now I'll work on this path and furthermore I'll check the sugestion of Qianqian to write a reading code for one of these formats.

Mafalda
 
 
 
Reply all
Reply to author
Forward
0 new messages