Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-n.b-one.net (mx-n.one.com [91.198.169.61])
	by mail9.b-one.net (Postfix) with ESMTP id A9D5340013D
	for <info@awaresystems.be>; Tue, 16 Jun 2009 19:51:41 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=0 required=6
	tests=[HTML_MESSAGE=0.001]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-n.b-one.net (Postfix) with ESMTP id CDF3E8C7282
	for <info@awaresystems.be>; Tue, 16 Jun 2009 19:51:38 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 1670A1D18B13A;
	Tue, 16 Jun 2009 12:47:43 -0500 (EST)
Received: from web111817.mail.gq1.yahoo.com (web111817.mail.gq1.yahoo.com
	[67.195.23.126])
	by lists.maptools.org (Postfix) with SMTP id 0AAA21D18B139
	for <tiff@lists.maptools.org>; Tue, 16 Jun 2009 12:12:48 -0500 (EST)
Received: (qmail 90498 invoked by uid 60001); 16 Jun 2009 17:12:47 -0000
Message-ID: <602256.88969.qm@web111817.mail.gq1.yahoo.com>
X-YMail-OSG: j44XmvwVM1mJa0A9uJmvPs4vFRTW8fSgpBv4xB5yXIukgtTg7nZPk24luNqJOY4NZobwSGorPRPvQuiJGv31mMUutXAc7ZcVSCo6ubaUCSpzqIRkaht_DS7.A7ludy61f5fKR.Hggr86oE.cTDnsBcuZAuK67wNSK__98xPa.mAxHMDluz7kKcaRBKtryG9rDbK4hsdRYMsjNx9D1WrkUj62WFxZf9L9YIDNqEiVqndb93sQERN5wuDefyNLuhSZ4E1BJlJ_4.SxR0wfbDM-
Received: from [77.133.98.118] by web111817.mail.gq1.yahoo.com via HTTP;
	Tue, 16 Jun 2009 10:12:47 PDT
X-Mailer: YahooMailClassic/5.4.12 YahooMailWebService/0.7.289.15
Date: Tue, 16 Jun 2009 10:12:47 -0700 (PDT)
From: Keshab Neupane <neupane.keshab@yahoo.com>
To: "tiff@lists.maptools.org" <tiff@lists.maptools.org>,
	Chris Cox <ccox@adobe.com>
MIME-Version: 1.0
Subject: Re: [Tiff] Tiff 16 bit and 32 bit images + some more questions
	about tiff file format
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2012624476=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org


--===============2012624476==
Content-Type: multipart/alternative; boundary="0-1759553184-1245172367=:88969"


--0-1759553184-1245172367=:88969
Content-Type: text/plain; charset=us-ascii

Hi All,

Thank you everyone for helping me to solve my confusions. I started reading graphics_encyclopedia and also about tiff file format from that book. Thanks for such nice reference. 

Still, I have some more confusions/questions. Please help me to clear my confusions. Hope these questions might be of interest to others beginners in tiff image file format :) Please excuse me if some of my questions don't make sense, these are my confusions only...

For bi-level image, we need only 2 bits (1 black, 0 white or vice-versa). But, I have seen tiff images where bps is not only 1 but it varies from 1 to 64. Why do we have so many extra bits, what are they needed for ?

And, sometimes, sampleformat is unsigned/signed integer and even float( i have tiff float bi-level sample image), what does this float and negative samples mean for bi-level, also for greyscale, RGB images ? If we have palette image, doesnt it mean that pixel value is infact index to color map or color lookup table (dont know the exact term), but what will happen in float, signed case ? I am very confused in this question. 

For RGB images, bps can be 4,8,16... but spp must be 3. Total no. of colors that can be represented is 2 ^ bps. And if value of R=G=B, does this mean it is grey-scale image ?

Colors in RGB images have fixed set of values for R,G,B. Colors for palette images have color map. Bi-level images are only black/white.
How is color determined(not actually color but grey-scale shades) in grey-scale images ??

What will happen if our photometric interpretation is 3 i.e. palette image, but there is no color map ? Is it possible for such thing to happen ? Who saves this color map or is it in tiff image by default ??

I need to handle tiff images that are spp = 1,3; bps = 1,8,16,32; signed/unsigned/float sample format; planar configuration contig; RGB with only 3 samples, alpha/extra channels not to be considered; how should I start differentiating all the possible images,a brief hint/guideline just to start....I would really appreciate that. Do I need to worry about photometric interpretation for this ??

Thank you very much.

Cheers,
Keshab



      
--0-1759553184-1245172367=:88969
Content-Type: text/html; charset=us-ascii

<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi All,<br><br>Thank you everyone for helping me to solve my confusions. I started reading graphics_encyclopedia and also about tiff file format from that book. Thanks for such nice reference. <br><br>Still, I have some more confusions/questions. Please help me to clear my confusions. Hope these questions might be of interest to others beginners in tiff image file format :) Please excuse me if some of my questions don't make sense, these are my confusions only...<br><br>For bi-level image, we need only 2 bits (1 black, 0 white or vice-versa). But, I have seen tiff images where bps is not only 1 but it varies from 1 to 64. Why do we have so many extra bits, what are they needed for ?<br><br>And, sometimes, sampleformat is unsigned/signed integer and even float( i have tiff float bi-level sample image), what does this float and negative samples mean for bi-level,
 also for greyscale, RGB images ? If we have palette image, doesnt it mean that pixel value is infact index to color map or color lookup table (dont know the exact term), but what will happen in float, signed case ? I am very confused in this question. <br><br>For RGB images, bps can be 4,8,16... but spp must be 3. Total no. of colors that can be represented is 2 ^ bps. And if value of R=G=B, does this mean it is grey-scale image ?<br><br>Colors in RGB images have fixed set of values for R,G,B. Colors for palette images have color map. Bi-level images are only black/white.<br>How is color determined(not actually color but grey-scale shades) in grey-scale images ??<br><br>What will happen if our photometric interpretation is 3 i.e. palette image, but there is no color map ? Is it possible for such thing to happen ? Who saves this color map or is it in tiff image by default ??<br><br>I need to handle tiff images that are spp = 1,3; bps = 1,8,16,32;
 signed/unsigned/float sample format; planar configuration contig; RGB with only 3 samples, alpha/extra channels not to be considered; how should I start differentiating all the possible images,a brief hint/guideline just to start....I would really appreciate that. Do I need to worry about photometric interpretation for this ??<br><br>Thank you very much.<br><br>Cheers,<br>Keshab<br></td></tr></table><br>

      
--0-1759553184-1245172367=:88969--

--===============2012624476==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
--===============2012624476==--
