[Rtk-users] ConstantImageSourceType::Pointer volumeSource = ConstantImageSourceType::New(); cuda error
Fuquan Deng
dfq_2022 at 163.com
Thu Jun 6 14:03:20 CEST 2024
void forwardConeBeam(float* volumn, float* integration, PhysicsParameters* params)
{
constexpr unsigned int Dimension = 3;
using OutputPixelType = float;
using OutputImageType = itk::CudaImage<OutputPixelType, Dimension>;
using CopyImageType = itk::Image<OutputPixelType, Dimension>;
using JFPType = rtk::CudaForwardProjectionImageFilter<OutputImageType, OutputImageType>;
using ConstantImageSourceType = rtk::ConstantImageSource<OutputImageType>;
using GeometryType = rtk::ThreeDCircularProjectionGeometry;
using ImportFilterType = rtk::ImportImageFilter<OutputImageType>;
ConstantImageSourceType::PointType origin;
ConstantImageSourceType::SizeType size;
ConstantImageSourceType::SpacingType spacing;
ConstantImageSourceType::Pointer volumeSource = ConstantImageSourceType::New(); // when i used this code, cause error, the error show below
size[0] = params->x;
size[1] = params->y;
size[2] = params->z;
spacing[0] = params->atteESX;
spacing[1] = params->atteESY;
spacing[2] = params->atteESZ;
origin[0] = params->minXP;
origin[1] = params->minYP;
origin[2] = params->minZP;
D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error #999
D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72:
Cuda Error #999
D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error #700
D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72:
Cuda Error #700
D:\itk\InsightToolkit\Modules\Remote\RTK\utilities\ITKCudaCommon\src\itkCudaContextManager.cxx:72 @ __cdecl itk::CudaContextManager::CudaContextManager(void) : Cuda Error #700
so how to solve this error?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20240606/f310459c/attachment.htm>
More information about the Rtk-users
mailing list