<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The former question doesn't
matter because I suppose I can trick the program in order to have a 2D
solution.</FONT></DIV>
<DIV><FONT face=Arial size=2>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).</FONT></DIV>
<DIV><FONT face=Arial size=2>Is it a bug? I beg your help. Thanks a
lot.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=xavier.penya@epfl.ch href="mailto:xavier.penya@epfl.ch">Xavier Penya</A>
</DIV>
<DIV><B>To:</B> <A title=insight-users@itk.org
href="mailto:insight-users@itk.org">insight-users@itk.org</A> </DIV>
<DIV><B>Sent:</B> Monday, March 26, 2007 6:13 PM</DIV>
<DIV><B>Subject:</B> ImageType::ImageDimension </DIV></DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I insisct: I tried everything just to put the
BiasImageGenerator in 2D mode instead of the 3D one, but everything
failed...</FONT></DIV>
<DIV><FONT face=Arial size=2>Can somebody tell me where is defined the var
ImageType? It is the root of the problem, due to the part of the
code:</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT face=Arial
size=2></FONT></FONT></FONT> </DIV><FONT size=2>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr></FONT><FONT face=Arial><FONT color=#0000ff size=2>if</FONT><FONT
size=2>(dimension != </FONT><FONT color=#0000ff size=2>static_cast</FONT><FONT
size=2><</FONT><FONT color=#0000ff size=2>int</FONT></FONT><FONT
size=2><FONT face=Arial>>(ImageType::ImageDimension))</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>{</FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr><FONT face=Arial>std::cout << "Currently compiled to only
support "</FONT></DIV>
<DIV dir=ltr><FONT face=Arial><< ImageType::ImageDimension << "
dimensional images."</FONT></DIV>
<DIV dir=ltr><FONT face=Arial><< std::endl;</FONT></DIV>
<DIV dir=ltr><FONT face=Arial>exit(0);</FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr><FONT face=Arial>}</FONT></DIV></BLOCKQUOTE>
<DIV dir=ltr><FONT face=Arial><FONT face=Arial></FONT></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial>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.</FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial>I need your help
please!</FONT></DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT face=Arial><FONT
face=Arial></FONT></FONT> </DIV>
<DIV dir=ltr style="MARGIN-RIGHT: 0px"><FONT
face=Arial>
Xavier</FONT></DIV></FONT></FONT></DIV></BODY></HTML>