[ITK-users] Picking 10000 samples from a larger mha image using ImageRandomNonRepeatingConstIteratorWithIndex and finding histogram.
Bradley Lowekamp
blowekamp at mail.nih.gov
Mon Sep 22 09:08:11 EDT 2014
Hello,
Do you have a small compilable example of this problem? It's really impossible to give specific information without any code.
The most frequent reason for this type of issue is that the Update method to the reader has not been called before a manual iteration over the image. So the size of the image is zero during iteration.
Brad
On Sep 22, 2014, at 7:52 AM, vijayarani <vijayarani.shanmugavadivu at appasamy.com> wrote:
> Hi
> I tried to pick 10000 samples from a larger mha image (which size is 167 MB)
> using ImageRandomNonRepeatingConstIteratorWithIndex class and tried to find
> the histogram and percentile
> values for the resultant image. However it gives 0 to all the percentiles.
> When I do the same for a small image it gives the valid percentile
> values.How to achieve finding histogram and percentiles for a larger mha
> image by picking up only 10000 samples from the original image?
>
> Thanks & Regards
> Vijaya Rani S
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Picking-10000-samples-from-a-larger-mha-image-using-ImageRandomNonRepeatingConstIteratorWithIndex-an-tp7586255.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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