[ITK-users] transfer 2D histogram data to itk::image

asertyuio asertyuio at yahoo.fr
Mon Mar 6 12:04:08 EST 2017


Haha, I should have found this one...

Many thanks Matt!


Le 06/03/2017 à 17:58, Matt McCormick a écrit :
> Hi Yann,
>
> HistogramToImageFilter may be what you are looking for:
>
>   https://itk.org/Doxygen/html/classitk_1_1HistogramToImageFilter.html
>
> HTH,
> Matt
>
> On Mon, Mar 6, 2017 at 11:47 AM, asertyuio via Insight-users
> <insight-users at itk.org> wrote:
>> Hi all,
>>
>> I need to calculate an histogram of an image that have 2 or 3 values per
>> pixel, (resulting in a nbin x nbin "matrix" for example in the case of 2
>> values per pixel)
>> I see that I can use the itk::Statistics::Histogram filter to calculate
>> multidimensional histograms.
>>
>> However, I need to process this histogram using functions that can be
>> applied to itk::image objects (e.g. morphological operations).
>> So the question is, can I convert the output of the Histogram filter to
>> a itk::image ? Best would be not to duplicate memory of course.
>>
>> Is there a clean way of doing that ?
>>
>> Thanks for your help !
>> Yann
>>
>>
>> _____________________________________
>> 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



More information about the Insight-users mailing list