[Rtk-users] rtk has no attribute "Reg1DextractShroudSignalImageFilter"
Simon Rit
simon.rit at creatis.insa-lyon.fr
Fri Jul 29 06:31:48 UTC 2022
Hi,
This filter is indeed not wrapped currently due to the notwrap extension:
https://github.com/SimonRit/RTK/blob/master/wrapping/rtkReg1DExtractShroudSignalImageFilter.notwrap
I have opened an issue to track this down in the future:
https://github.com/SimonRit/RTK/issues/506
Simon
On Fri, Jul 29, 2022 at 8:01 AM dongping.wang--- via Rtk-users <
rtk-users at public.kitware.com> wrote:
> Hi all
>
>
>
> I am trying to use Reg1DExtractShroudSignalImageFilter with python. But I
> met one error as the following:
>
> Please help me check what this problem may be?
>
>
>
> Regards
>
> Wang Dongping
>
>
>
> *发件人:* dongping.wang at simmhealthcare.com <dongping.wang at simmhealthcare.com>
>
> *发送时间:* 2022年7月25日 12:33
> *收件人:* rtk-users at openrtk.org
> *主题:* 回复: scatterglarecorrection
>
>
>
> Hi all
>
>
>
> I have a 3d raw data which has a size of 512*512*1012.
>
> When I use the following code:
>
>
>
> inputImage=ROIRegionFilter.GetOutput()
>
>
> SGFilterType=rtk.ScatterGlareCorrectionImageFilter[ImageType,ImageType,itk.F]
>
> SGFilter=SGFilterType.New()
>
> SGFilter.SetInput(ROIRegionFilter.GetOutput())
>
> SGFilter.SetCoefficients([0.0787,10.6244])
>
> SGFilter.SetTruncationCorrection(0.5)
>
>
>
> And Extract a full size:
>
> I got one error said:
>
>
>
> *RuntimeError*:
> C:\P\IPP\ITK-source\ITK\Modules\Filtering\FFT\include\itkVnlRealToHalfHermitianForwardFFTImageFilter.hxx:58:
>
> ITK ERROR: VnlRealToHalfHermitianForwardFFTImageFilter(000002AD61E8C4E0):
> Cannot compute FFT of image with size [1024, 1024, 1012].
> VnlRealToHalfHermitianForwardFFTImageFilter operates only on images whose
> size in each dimension has a prime factorization consisting of only 2s, 3s,
> or 5s.
>
>
>
> When I extract the slices upto 512 or 2, then the python hung up.
>
>
>
> If I just extracted one of the slices, it is ok.
>
>
>
> So my question is:
>
> ScatterGlareCorrectionImageFilter is only working with a slice (for
> example 512X512X1)?
>
> If I wanted to use this filter, I have to walk through the raw data slice
> by slice? Thanks!
>
>
>
> Regards
>
>
>
> Wang Dongping
>
>
>
>
>
> *发件人:* dongping.wang at simmhealthcare.com <dongping.wang at simmhealthcare.com>
>
> *发送时间:* 2022年7月19日 11:29
> *收件人:* 'rtk-users at openrtk.org' <rtk-users at openrtk.org>
> *主题:* scatterglarecorrection
>
>
>
> Hi all
>
>
>
> I am trying to use ScatterGlareCorrectionImageFilter to do some scattering
> correction. From the test, we can see we just need to set the coef, then
> call the update().
>
>
>
> ImageType::Pointer testImage = createInputImage(coef);
>
> SFilter->SetInput(testImage);
>
> TRY_AND_EXIT_ON_ITK_EXCEPTION(SFilter->Update())
>
>
> The question is if we need to call the
> UpdateFFTProjectionsConvolutionKernel() to build the filter before we call
> update()?If we wanted to correct one 3D raw project data, how we do the
> correction slice by slice? Any example for it? RegardsWang Dongping
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20220729/274731c7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 134807 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20220729/274731c7/attachment-0001.png>
More information about the Rtk-users
mailing list