@@ -215,7 +215,7 @@ CUDA_WeidingerForwardModel(int projectionSize[3],
215
215
default :
216
216
{
217
217
itkGenericExceptionMacro (<< " The CUDA version of WeidingerForwardModel works with hard-coded parameters, "
218
- " currently set to nMaterials= 2 or 3, nMaterials= "
218
+ " currently set to 2 or 3 materials. "
219
219
<< nMaterials << " is not supported." );
220
220
}
221
221
}
@@ -229,10 +229,14 @@ CUDA_WeidingerForwardModel(int projectionSize[3],
229
229
kernel_forward_model<1 , 79 , 2 >
230
230
<<<dimGrid, dimBlock>>> (pMatProj, pPhoCount, pSpectrum, pProjOnes, pOut1, pOut2, nProjSpectrum, nIdxProj);
231
231
break ;
232
+ case 3 :
233
+ kernel_forward_model<1 , 79 , 3 >
234
+ <<<dimGrid, dimBlock>>> (pMatProj, pPhoCount, pSpectrum, pProjOnes, pOut1, pOut2, nProjSpectrum, nIdxProj);
235
+ break ;
232
236
default :
233
237
{
234
238
itkGenericExceptionMacro (<< " The CUDA version of WeidingerForwardModel works with hard-coded parameters, "
235
- " currently set to nMaterials= 2 or 3, nMaterials= "
239
+ " currently set to 2 or 3 materials. "
236
240
<< nMaterials << " is not supported." );
237
241
}
238
242
}
@@ -241,7 +245,7 @@ CUDA_WeidingerForwardModel(int projectionSize[3],
241
245
else
242
246
{
243
247
itkGenericExceptionMacro (<< " The CUDA version of WeidingerForwardModel works with hard-coded parameters "
244
- " (nBins,nEnergies,nMaterials ) equal to (5,150,2 ),(5,150,3 ),(1,79,2 )." );
248
+ " (nBins,nEnergies) equal to (5,150),(5,150),(1,79),(1,79 )." );
245
249
}
246
250
CUDA_CHECK_ERROR;
247
251
}
0 commit comments