<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Simon,<br>
<br>
Thanks for the quick response. I made some changes and sent you a pull request. However, because of the changes I made, I'm now having some problems in rtk::LUTbasedVariableI0RawToAttenuationImageFilter::BeforeThreadedGenerateData(). I tried to solve it using
typename, but it seems to be unsuccessful. Could you please have a look? The I0EstimationProjectionFilter seems to work now.<br>
<br>
Lotte<br>
<br>
<div class="moz-cite-prefix">On 04-03-17 11:25, Simon Rit wrote:<br>
</div>
<blockquote cite="mid:CAF0oig18jyJK5zCdocBNfwDGiTwtrv=xvyc4nqWMDeQfVXcAtw@mail.gmail.com" type="cite">
<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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a moz-do-not-send="true" 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>
</blockquote>
<br>
</body>
</html>