[Insight-users] mask in Euclidean distance map computation

Gao, Yi gaoyi.cn at gmail.com
Tue Jul 6 09:09:20 EDT 2010


Thank you Dan!

I will use the suggestion you gave for the fastmarching and see if that works.

Thanks a lot!

Best,
yi

On Tue, Jul 6, 2010 at 12:20 AM, Dan Mueller <dan.muel at gmail.com> wrote:
> Hi Yi,
>
> You should be able to restrict operations to a rectangular region by calling:
>    distanceFilter->GetOutput()->SetRequestedRegion( region );
>
> I do not believe it is possible to restrict the operation to an
> arbitrarily shaped mask (at least for
> SignedMaurerDistanceMapImageFilter).
>
> HTH
>
> Cheers, Dan
>
> On 6 July 2010 05:09, Gao, Yi <gaoyi.cn at gmail.com> wrote:
>> Dear all,
>>
>> I'm trying to compute the Euclidean distance map on an rectangular
>> domain. However, I want to compute the distance map within the certain
>> region represented by a binary image. Could I know if there is a
>> straight forward way to do that?
>>
>> Thank you in advance!
>>
>> Best,
>> yi
>


More information about the Insight-users mailing list