Discussion:
[ITK-users] Suggestion for itk::BoundingBox
沈庄明
2017-09-15 00:46:57 UTC
Permalink
Hi all,


Bounding box is a very useful functionality for me. I suggest whether itk::BoundingBox can provide an API which will directly output a binary image. For the binary image, pixels/voxels inside the bounding box are represented as 1, other pixels/voxels outside the bounding box are represented as 0.



Regards,


Zhuangming Shen
Francois Budin
2017-09-15 13:10:47 UTC
Permalink
Hello Zhuangming Shen,

Thanks for suggesting new functionalities. Could you add that suggestion on
JIRA [1], the bug tracking system ITK uses.

Thanks,
Francois
[1] https://issues.itk.org/jira/secure/Dashboard.jspa

On Thu, Sep 14, 2017 at 8:46 PM, 沈庄明 <***@sphic.org.cn> wrote:

> Hi all,
>
>
> Bounding box is a very useful functionality for me. I suggest whether
> itk::BoundingBox can provide an API which will directly output a binary
> image. For the binary image, pixels/voxels inside the bounding box are
> represented as 1, other pixels/voxels outside the bounding box are
> represented as 0.
>
>
>
> Regards,
>
>
> Zhuangming Shen
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
Dženan Zukić
2017-09-15 13:50:43 UTC
Permalink
Hi Zhuangming Shen,

itk::Region already has IsInside
<https://itk.org/Doxygen/html/classitk_1_1ImageRegion.html#a915f081743742ec14ca69c876e98fac4>
method. A method which returns an image with all 1s inside the region, and
0s outside is a big functionality overlap with IsInside method, and
probably too specific to be worth maintaining it in the long term.

You can add it as a feature request, but I doubt anyone will implement
that: those competent enough to implement it will not see a big need for
it, and those who see the need for it are probably not competent enough to
implement it :)

It would be a good exercise if you tried to implement it yourself.

Regards,
DÅŸenan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Fri, Sep 15, 2017 at 9:10 AM, Francois Budin <***@kitware.com>
wrote:

> Hello Zhuangming Shen,
>
> Thanks for suggesting new functionalities. Could you add that suggestion
> on JIRA [1], the bug tracking system ITK uses.
>
> Thanks,
> Francois
> [1] https://issues.itk.org/jira/secure/Dashboard.jspa
>
> On Thu, Sep 14, 2017 at 8:46 PM, 沈庄明 <***@sphic.org.cn> wrote:
>
>> Hi all,
>>
>>
>> Bounding box is a very useful functionality for me. I suggest whether
>> itk::BoundingBox can provide an API which will directly output a binary
>> image. For the binary image, pixels/voxels inside the bounding box are
>> represented as 1, other pixels/voxels outside the bounding box are
>> represented as 0.
>>
>>
>>
>> Regards,
>>
>>
>> Zhuangming Shen
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
沈庄明
2017-09-15 13:56:24 UTC
Permalink
Hi Francois and DÅŸenan,


Thanks for your advises. I have created a feature request.

https://issues.itk.org/jira/browse/ITK-3567​

Regards,

Zhuangming Shen
________________________________
From: DÅŸenan Zukić <***@gmail.com>
Sent: Friday, September 15, 2017 9:50 PM
To: Francois Budin
Cc: 沈庄明; insight-***@itk.org
Subject: Re: [ITK-users] Suggestion for itk::BoundingBox

Hi Zhuangming Shen,

itk::Region already has IsInside<https://itk.org/Doxygen/html/classitk_1_1ImageRegion.html#a915f081743742ec14ca69c876e98fac4> method. A method which returns an image with all 1s inside the region, and 0s outside is a big functionality overlap with IsInside method, and probably too specific to be worth maintaining it in the long term.

You can add it as a feature request, but I doubt anyone will implement that: those competent enough to implement it will not see a big need for it, and those who see the need for it are probably not competent enough to implement it :)

It would be a good exercise if you tried to implement it yourself.

Regards,
DÅŸenan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Fri, Sep 15, 2017 at 9:10 AM, Francois Budin <***@kitware.com<mailto:***@kitware.com>> wrote:
Hello Zhuangming Shen,

Thanks for suggesting new functionalities. Could you add that suggestion on JIRA [1], the bug tracking system ITK uses.

Thanks,
Francois
[1] https://issues.itk.org/jira/secure/Dashboard.jspa

On Thu, Sep 14, 2017 at 8:46 PM, 沈庄明 <***@sphic.org.cn<mailto:***@sphic.org.cn>> wrote:

Hi all,


Bounding box is a very useful functionality for me. I suggest whether itk::BoundingBox can provide an API which will directly output a binary image. For the binary image, pixels/voxels inside the bounding box are represented as 1, other pixels/voxels outside the bounding box are represented as 0.



Regards,


Zhuangming Shen

_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users



_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
Loading...