Hi Lotte, 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 std::numeric_limits <http://en.cppreference.com/w/cpp/types/numeric_limits><InputImagePixelType> ::digits. 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. If you can't figure it out, let us know. If you do, please share your dev! Thanks, Simon
On Fri, Mar 3, 2017 at 2:39 PM, Lotte Schyns <lotte.sch...@maastro.nl> wrote: > Hello, > > I would like to set the maximum pixel value in > rtk::I0EstimationProjectionFilter to (2^32)-1 since I have (unsigned) > pixels of 4 bytes each. However, the input for SetMaxPixelValue requires > an unsigned short, so I can only set a maximum value of (2^16)-1, which > is not enough. Is there a possible solution/workaround for this? Could > you also tell me what the bitShift represents in > rtk::I0EstimationProjectionFilter? Thanks in advance. > > Lotte > _______________________________________________ > Rtk-users mailing list > Rtk-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/rtk-users >
_______________________________________________ Rtk-users mailing list Rtk-users@public.kitware.com http://public.kitware.com/mailman/listinfo/rtk-users