[MINC-users] Compute distance map from BIC .obj file

Simon Eskildsen eskild at gmail.com
Wed Apr 11 04:58:46 EDT 2012


Hi Ulrik,

I have found some of my old code that does almost what you want. Let
me know if it's still relevant and I can send you a modified version.

Simon

On Wed, Mar 21, 2012 at 8:11 PM, Ulrik Landberg Stephansen
<usteph08 at student.aau.dk> wrote:
> Hi Simon,
>
> What I am looking for is a tool to do this without having to convert the object to a binary image, which should (in theory) result in a more accurate distance map.
>
> By signed I mean negative inside and positive outside, yes (or vice versa). The object is closed.
>
> Ulrik
>
>
> Den 21/03/2012 kl. 13.54 skrev Simon Eskildsen:
>
>> Hi Ulrik,
>>
>> You can use scan_object_to_volume from conglomerate and mincchamfer to
>> get a distance map. Of course the precision will be limited to the
>> voxel sizes and you will not get a signed distance. By signed you mean
>> inside / outside the object, right? If the object is closed you'll be
>> able to generate the sign with surface_mask2, also from conglomerate.
>>
>> Simon
>>
>> On Wed, Mar 21, 2012 at 1:43 PM, Ulrik Landberg Stephansen
>> <usteph08 at student.aau.dk> wrote:
>>> Hi,
>>>
>>> I would like to compute the (signed) distance map from a BIC .obj file based on the sampling options in a template MINC volume and save it as a new MINC volume. I.e. for each voxel in the template volume, compute the shortest distance to the surface of the object and use that value as the grayscale value of the corresponding voxel in the output volume.
>>>
>>> Does such a tool exist, or is it possible using a combination of existing tools?
>>>
>>> Ulrik
>>> _______________________________________________
>>> MINC-users at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users


More information about the MINC-users mailing list