[Insight-users] Fw: ImageType::ImageDimension
Xavier Penya
xavier.penya at epfl.ch
Mon Mar 26 14:04:37 EST 2007
The former question doesn't matter because I suppose I can trick the program in order to have a 2D solution.
The actual problem is that even in 3D the result image is all zeros (using the bias coefficients of an image previously bias-corrected by the ImageBiasCorrector).
Is it a bug? I beg your help. Thanks a lot.
----- Original Message -----
From: Xavier Penya
To: insight-users at itk.org
Sent: Monday, March 26, 2007 6:13 PM
Subject: ImageType::ImageDimension
Hello,
I insisct: I tried everything just to put the BiasImageGenerator in 2D mode instead of the 3D one, but everything failed...
Can somebody tell me where is defined the var ImageType? It is the root of the problem, due to the part of the code:
if(dimension != static_cast<int>(ImageType::ImageDimension))
{
std::cout << "Currently compiled to only support "
<< ImageType::ImageDimension << " dimensional images."
<< std::endl;
exit(0);
}
If I put "dimension=2" it shows the error message because ImageType::ImageDimension is always 3. The problem is that I cannot change (I even cannot reach) ImageType::ImageDimension.
I need your help please!
Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070326/4558bb81/attachment.htm
More information about the Insight-users
mailing list