Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0FHaJ9W013920
        for <joris.at.lebbeke@skynet.be>; Sat, 15 Jan 2005 18:36:20 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0FHa6gW028816
        for <joris.at.lebbeke@skynet.be>; Sat, 15 Jan 2005 18:36:08 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 9A3845C2489; Sat, 15 Jan 2005 12:35:10 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from cgp.pu.ru (vlan3.cgp.pu.ru [195.70.196.209])
	by xserve.flids.com (Postfix) with ESMTP id BE2555C2446
	for <tiff@remotesensing.org>; Sat, 15 Jan 2005 12:34:58 -0500 (EST)
Received: from wg.pu.ru ([193.124.85.219] verified)
	by cgp.pu.ru (CommuniGate Pro SMTP 4.2.8)
	with ESMTP id 45279758 for tiff@remotesensing.org;
	Sat, 15 Jan 2005 20:29:06 +0300
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id RAA04429
	for tiff@remotesensing.org; Sat, 15 Jan 2005 17:34:52 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.13.2/8.13.2/Debian-1) with ESMTP id j0FHMSLI029390
	for <tiff@remotesensing.org>; Sat, 15 Jan 2005 20:22:28 +0300
Received: (from dron@localhost)
	by ak4719.spb.edu (8.13.2/8.13.2/Submit) id j0FHMSPF029386
	for tiff@remotesensing.org; Sat, 15 Jan 2005 20:22:28 +0300
From: Andrey Kiselev <dron@ak4719.spb.edu>
Date: Sat, 15 Jan 2005 20:22:28 +0300
To: tiff@remotesensing.org
Subject: Re: [Tiff] negative values written in a "uint", 16-bit mode tiff
Message-ID: <20050115172228.GC8656@ak4719.spb.edu>
Mail-Followup-To: tiff@remotesensing.org
References: <20041224012901.196.qmail@web54109.mail.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20041224012901.196.qmail@web54109.mail.yahoo.com>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S, d@_1-C=}/,
	c%<3Qp]eu!ok<"2lYJm$!9qVcg F?7o*L; |$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;
	>fuY=fc(=sX^`7Wmw8%SsR`AvM$a; 0U/eN\ P?B\FTyqD, 0np$U2!*'z_4D,
	VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
	Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;
	j~\M! gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: ClamAV 0.80/663/Wed Jan 12 01:44:48 2005
	clamav-milter version 0.80j on ak4719
X-Virus-Status: Clean
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 2c529f4ef87af09b5d2ed18761e3f27c

On Thu, Dec 23, 2004 at 05:29:01PM -0800, S Smith wrote:
> I want to write a greyscale TIFF with 16 bits per pixel.  My code is
> below.  The pixels should be labeled 0-65535, but at halfway through
> the image, they turn negative and count back down towards zero. I've
> set the image to be uint, 16 bit.  What am I missing here?  Thanks in
> advance! -s

Why do you think that they are negative? What code/tool do you use to
read the file back?

Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5970603  ICQ# 26871517
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
