[Insight-developers] Changes to ImageIO

Parag Chandra chandra@cs.unc.edu
Thu, 22 Mar 2001 01:16:43 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_06CE_01C0B26D.C16F9A70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
If any of you have written file readers that derive from ImageIO, please =
make note of the following change. In order to accomodate filetypes that =
use multiple extensions (for example, jpeg sometimes uses .jpeg in =
addition to .jpg), I modified ImageIO::GetSupportedFileExtensions() =
from:

virtual std::string GetSupportedFileExtensions() const =3D 0;

to:

typedef std::deque<std::string> FileExtensionsListType;
virtual FileExtensionsListType GetSupportedFileExtensions() const =3D 0;

So now, instead of returning a single string, it returns a list of =
strings. The changes that need to be made to any readers are shown in =
Unsupported/MetaImage/FileIOMetaImage.cxx and .h. Besides the one for =
MetaImage, I'm not aware of any other readers, but if there are, please =
let me know and I will help you make the necessary changes.

Thanks,
-Parag

------=_NextPart_000_06CE_01C0B26D.C16F9A70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If any of you have written file readers =
that derive=20
from ImageIO, please make note of the following change. In order to =
accomodate=20
filetypes that use multiple extensions (for example, jpeg sometimes uses =
.jpeg=20
in addition to .jpg), I modified ImageIO::GetSupportedFileExtensions()=20
from:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>virtual std::string =
GetSupportedFileExtensions()=20
const =3D 0;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>to:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>typedef std::deque&lt;std::string&gt;=20
FileExtensionsListType;<BR>virtual FileExtensionsListType=20
GetSupportedFileExtensions() const =3D 0;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>So now, instead of returning a single =
string, it=20
returns a list of strings. The changes that need to be made to any =
readers are=20
shown in Unsupported/MetaImage/FileIOMetaImage.cxx and .h. Besides the =
one for=20
MetaImage, I'm not aware of any other readers, but if there are, please =
let me=20
know and I will help you make the necessary changes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Parag</DIV></FONT></BODY></HTML>

------=_NextPart_000_06CE_01C0B26D.C16F9A70--