<div dir="ltr"><div><div><div><div><div>Hi Lotte,<br></div>This code has only be used for unsigned short. I guess you should replace all "unsigned short" in the two code files by InputImagePixelType which is already defined in the header. I would also advise a code review, for example 16 line 33 of rtkI0EstimationProjectionFilter.hxx should be replace by <span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><a href="http://en.cppreference.com/w/cpp/types/numeric_limits"><span class="gmail-kw344">std::<span class="gmail-me2">numeric_limits</span></span></a><span class="gmail-sy1"><</span></span></span>InputImagePixelType<span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><span class="gmail-sy1">></span><span class="gmail-sy4">::</span><span class="gmail-me2">digits.<br></span></span></span></div><span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><span class="gmail-me2">I0EstimationProjectionFilter is based on a histogram analysis. Using 2^16 bins for unsigned shorts or 2^32 for unsigned int is too large so bitShift is used to reduce the number of bins to, e.g., for unsigned shorts, 2^(16-bitShift) bins.<br></span></span></span></div><span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><span class="gmail-me2">If you can't figure it out, let us know. If you do, please share your dev!<br></span></span></span></div><span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><span class="gmail-me2">Thanks,<br></span></span></span></div><span class="gmail-t-c"><span class="gmail-mw-geshi gmail-cpp gmail-source-cpp"><span class="gmail-me2">Simon<br></span></span></span> </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 3, 2017 at 2:39 PM, Lotte Schyns <span dir="ltr"><<a href="mailto:lotte.schyns@maastro.nl" target="_blank">lotte.schyns@maastro.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I would like to set the maximum pixel value in<br>
rtk::<wbr>I0EstimationProjectionFilter to (2^32)-1 since I have (unsigned)<br>
pixels of 4 bytes each. However, the input for SetMaxPixelValue requires<br>
an unsigned short, so I can only set a maximum value of (2^16)-1, which<br>
is not enough. Is there a possible solution/workaround for this? Could<br>
you also tell me what the bitShift represents in<br>
rtk::<wbr>I0EstimationProjectionFilter? Thanks in advance.<br>
<br>
Lotte<br>
______________________________<wbr>_________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/rtk-users</a><br>
</blockquote></div><br></div>