Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'scipy': 0.05; 'int,': 0.07; 'slice': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:files': 0.09; 'subject:image': 0.09; 'pm,': 0.10; 'wrote:': 0.14; '2:18': 0.16; 'bit.': 0.16; 'numpy': 0.16; 'reedy': 0.16; 'subject:raw': 0.16; 'pil': 0.19; 'jan': 0.20; 'header:In-Reply-To:1': 0.21; 'worked': 0.24; '(or': 0.24; 'code': 0.24; 'checked': 0.25; 'bit': 0.30; 'one)': 0.30; 'subject:working': 0.30; 'header:X-Complaints-To:1': 0.32; 'to:addr:python-list': 0.33; 'list': 0.33; 'question': 0.34; 'however,': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'data,': 0.36; 'think': 0.38; 'received:org': 0.38; 'but': 0.38; 'size,': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'printed': 0.39; 'header:Mime-Version:1': 0.39; 'list,': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'medical': 0.65; 'noise': 0.67; 'here.': 0.69; 'specialized': 0.69; 'pro': 0.89; '8bit': 0.91; 'something.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: working with raw image files Date: Mon, 13 Jun 2011 14:49:36 -0400 References: <0cd64f09-bd32-4b67-9266-46003dbea4b7@m4g2000yqk.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: <0cd64f09-bd32-4b67-9266-46003dbea4b7@m4g2000yqk.googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307990990 news.xs4all.nl 49183 [::ffff:82.94.164.166]:39819 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7548 On 6/13/2011 2:18 PM, kafooster wrote: > I am working on some medical image data, and I try to look into > specific slice of 3d *.raw image. I know voxels are 16 bit int, and > dimensions are 352*470*96. I checked it in some pro medical image > viewer, it is alright. However, with the code I use, I display just > white noise image.(but worked well for other, 8bit raw image). > Also, printed size is half the original size, like it was 8 bit. I > read some documentations on PIL, numpy etc but I think I just do not > understand something. You might get a better answer to such a specialized question on the scipy list (or PIL list, if there is one) than here. -- Terry Jan Reedy