Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 2432 invoked from network); 21 Nov 2008 21:56:25 -0000
Received: from jack.telenet-ops.be ([195.130.136.5])
          (envelope-sender <tiff-bounces@lists.maptools.org>)
          by angelia.telenet-ops.be (qmail-ldap-1.03) with SMTP
          for <info@awaresystems.be>; 21 Nov 2008 21:56:25 -0000
Received: from mindy.telenet-ops.be (mindy.telenet-ops.be [195.130.136.8])
	by jack.telenet-ops.be (8.13.1/8.13.1) with ESMTP id mALLuPUR008536
	for <info@awaresystems.be>; Fri, 21 Nov 2008 22:56:25 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mindy.telenet-ops.be (Postfix) with SMTP id B483C60006
	for <info@awaresystems.be>; Fri, 21 Nov 2008 22:56:25 +0100 (CET)
Received: from crotus.telenet-ops.be (crotus.telenet-ops.be [195.130.132.38])
	by mindy.telenet-ops.be (Postfix) with ESMTP id AD9AB60005
	for <info@awaresystems.be>; Fri, 21 Nov 2008 22:56:25 +0100 (CET)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by crotus.telenet-ops.be (Postfix) with ESMTP id 68F69F
	for <info@awaresystems.be>; Fri, 21 Nov 2008 22:56:25 +0100 (CET)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mALLslNq016430;
	Fri, 21 Nov 2008 16:55:02 -0500
Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com
	[207.106.133.19])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id mALLskkV016427
	for <tiff@lists.maptools.org>; Fri, 21 Nov 2008 16:54:46 -0500
Received: from localhost.localdomain (unknown [127.0.0.1])
	by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id
	2E75080B6C; Fri, 21 Nov 2008 16:54:44 -0500 (EST)
Received: from [192.168.2.4] (unknown [67.47.28.121]) (using TLSv1 with
	cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate
	requested)
	by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id
	1517680B62; Fri, 21 Nov 2008 16:54:21 -0500 (EST)
Message-ID: <49272E06.1020104@pobox.com>
Date: Fri, 21 Nov 2008 16:54:14 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: Richard Nolde <nrichard8@qwest.net>
Subject: Re: [Tiff] Re: RGB to palette images
References: <200811211701.mALH13hu007438@duke.maptools.org>
	<49270B32.9030801@qwest.net> <0D422F7834824A26B434F1F21BF500B0@KAM1720>
	<492727A8.3080800@qwest.net>
In-Reply-To: <492727A8.3080800@qwest.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 019C7836-B817-11DD-ABA2-8214C92D7133-06493634!a-sasl-fastnet.pobox.com
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-SpamCatcher-Score: 50 [XX]


Folks,

In the interest of completeness, the normal libtiff command for this
task is tiffmedian.  It does not require holding the whole image in RAM.

However, it will not exactly preserve the color list from an RGB image with
a very limited number of unique colors (as described) so it is likely not
a great solution for the problem.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

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