[Insight-users] FDF Reader

Glenn Pierce glennpierce at connectfree.co.uk
Mon, 15 Mar 2004 15:42:52 +0000


--=-hFMSU+PDia0QK7cCZhla
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi I have finally gotten a basic FDFImageIO reader.
I have also written a factory for the reader.

The code can be download at
http://homepage.ntlworld.com/glenn.pierce/software/itkFDFImageIO.tar.gz

This code reads Varian FDF files used often with MRI data.
Hopefully other itk users can use this.

I just have a couple of questions.
The intensities do no display correctly. I am displaying with the
vtkImageViewer and when
setting the following

viewer->SetColorWindow(1);
viewer->SetColorLevel(0.1);

I can just see a slight outline.

with 

viewer->SetColorWindow(255);
viewer->SetColorLevel(128);

Just black displays.

How do I display the the image with it's intended intensities ?
At the moment I have normalised the data before displaying the image.

Also as the image is flipped about both axis how do I flip the image
back ?

Thanks for the help.



___________________________________________

Glenn Pierce

home phone: 0208 279 4624
mobile phone: 07782 138354
icq account: 104903326
msn account: glennpierce2001 at hotmail.com
yahoo account: glennpierce2001
email: glennpierce at connectfree.co.uk
___________________________________________


--=-hFMSU+PDia0QK7cCZhla
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi I have finally gotten a basic FDFImageIO reader.<BR>
I have also written a factory for the reader.<BR>
<BR>
The code can be download at<BR>
<A HREF="http://homepage.ntlworld.com/glenn.pierce/software/itkFDFImageIO.tar.gz">http://homepage.ntlworld.com/glenn.pierce/software/itkFDFImageIO.tar.gz</A><BR>
<BR>
This code reads Varian FDF files used often with MRI data.<BR>
Hopefully other itk users can use this.<BR>
<BR>
I just have a couple of questions.<BR>
The intensities do no display correctly. I am displaying with the vtkImageViewer and when<BR>
setting the following<BR>
<BR>
viewer-&gt;SetColorWindow(1);<BR>
viewer-&gt;SetColorLevel(0.1);<BR>
<BR>
I can just see a slight outline.<BR>
<BR>
with <BR>
<BR>
viewer-&gt;SetColorWindow(255);<BR>
viewer-&gt;SetColorLevel(128);<BR>
<BR>
Just black displays.<BR>
<BR>
How do I display the the image with it's intended intensities ?<BR>
At the moment I have normalised the data before displaying the image.<BR>
<BR>
Also as the image is flipped about both axis how do I flip the image back ?<BR>
<BR>
Thanks for the help.<BR>
<BR>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<FONT COLOR="#6c51e8">___________________________________________</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2"><B><BR>
Glenn Pierce</B></FONT><BR>
<BR>
<FONT COLOR="#6c51e8" SIZE="2">home phone: </FONT><FONT COLOR="#808080" SIZE="2">0208 279 4624</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2">mobile phone: </FONT><FONT COLOR="#808080" SIZE="2">07782 138354</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2">icq account: </FONT><FONT COLOR="#808080" SIZE="2">104903326</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2">msn account: </FONT><FONT COLOR="#808080" SIZE="2">glennpierce2001 at hotmail.com</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2">yahoo account: </FONT><FONT COLOR="#808080" SIZE="2">glennpierce2001</FONT><BR>
<FONT COLOR="#6c51e8" SIZE="2">email:</FONT><FONT COLOR="#808080" SIZE="2"> </FONT><A HREF="mailto:glennpierce at connectree.co.uk"><FONT SIZE="2"><U>glennpierce at connectfree.co.uk</U></FONT></A><BR>
<FONT COLOR="#6c51e8">___________________________________________</FONT>
</TD>
</TR>
</TABLE>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-hFMSU+PDia0QK7cCZhla--