[Insight-users] read 16-bit grayscale png file

Miller, James V (Research) millerjv at crd . ge . com
Fri, 22 Aug 2003 11:30:42 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C368C1.F13425EF
Content-Type: text/plain

I believe I have written and read 16 bit png files with ITK.  I definately
know that I have written them. And I think I have read them back into ITK.
 
Did you change the pixel type on the ImageFileReader when switching from 8
bit to 16 bit images?
 
Are you confident your 16 bit images are "good" png files?
 

-----Original Message-----
From: SHEN, WEICHENG . [mailto:WEICHENG . SHEN at saic . com]
Sent: Friday, August 22, 2003 11:12 AM
To: 'insight-users at itk . org'
Subject: [Insight-users] read 16-bit grayscale png file



Hi,

 

I have a number of 16-bit grayscale .png files that I wish to process using
ITK. When using the itkImageFileReader class to read them in, the following
message occurred

 

This application has requested the Runtime to terminate it in an unusual
way.

Please contact the application's support team for more information.

 

This program works fine with the 8-bit .png file.

 

Does anyone know if the .png 16-bit support in itk works?

 

Thanks!

 

Weicheng Shen, Ph.D.

Senior Scientist

Science Applications International Corporation

1710 SAIC Drive

MailStop 2-6-9

McLean, VA 22102

(703) 676-4189

 


------_=_NextPart_001_01C368C1.F13425EF
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">


<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff size=2>I believe I have 
written and read 16 bit png files with ITK.&nbsp; I definately know that I have 
written them. And I think I have read them back into ITK.</FONT></SPAN></DIV>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff size=2>Did you change 
the pixel type on the ImageFileReader when switching from 8 bit to 16 bit 
images?</FONT></SPAN></DIV>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff size=2>Are you confident 
your 16 bit images are "good" png files?</FONT></SPAN></DIV>
<DIV><SPAN class=935472715-22082003><FONT color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> SHEN, WEICHENG . 
  [mailto:WEICHENG . SHEN at saic . com]<BR><B>Sent:</B> Friday, August 22, 2003 11:12 
  AM<BR><B>To:</B> 'insight-users at itk . org'<BR><B>Subject:</B> [Insight-users] 
  read 16-bit grayscale png file<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have a number of 16-bit 
  grayscale .png files that I wish to process using ITK. When using the 
  itkImageFileReader class to read them in, the following message 
  occurred</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">This application has requested the 
  Runtime to terminate it in an unusual way.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please contact the application's 
  support team for more information.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">This program works fine with the 
  8-bit .png file.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Does anyone know if the .png 
  16-bit support in itk works?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks!</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Weicheng Shen, 
  Ph.D.</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Senior 
  Scientist</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Science Applications International 
  Corporation</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1710 SAIC 
  Drive</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">MailStop 
  </SPAN></FONT></I></EM><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">2-6-9</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">McLean</SPAN></FONT></I></EM><EM><I><FONT 
  face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">, 
  </SPAN></FONT></I></EM><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">VA</SPAN></FONT></I></EM><EM><I><FONT 
  face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 
  </SPAN></FONT></I></EM><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">22102</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><EM><I><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">(703) 
  676-4189</SPAN></FONT></I></EM></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C368C1.F13425EF--