Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas021.isp.belgacom.be (localhost [127.0.0.1])
        by inav025.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k2VDqtVj025396
        for <joris.at.lebbeke@skynet.be>; Fri, 31 Mar 2006 15:52:55 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.4.216])
        by inas021.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k2VDqqu8001792
        for <joris.at.lebbeke@skynet.be>; Fri, 31 Mar 2006 15:52:52 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx013.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k2VDqkU0001020
        for <joris.at.lebbeke@skynet.be>; Fri, 31 Mar 2006 15:52:46 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
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 k2VDjtks002334;
	Fri, 31 Mar 2006 08:47:20 -0500
Received: from mail.sidefx.com (tor149-99-58-193.dedicated.sprintdsl.ca
	[149.99.58.193])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k2VDjrHD002331
	for <tiff@lists.maptools.org>; Fri, 31 Mar 2006 08:45:53 -0500
Received: from [192.168.235.145] (crete.local.sidefx.com [192.168.235.145])
	by mail.sidefx.com (Postfix) with ESMTP id B7FCA5C063;
	Fri, 31 Mar 2006 08:45:52 -0500 (EST)
Message-ID: <442D32DC.60901@sidefx.com>
Date: Fri, 31 Mar 2006 08:47:08 -0500
From: Edward Lam <edward@sidefx.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: "Chris L." <brezey2@yahoo.com.au>
Subject: Re: [Tiff] 16-bit TIFF to 8-bit BMP/TIF ???
References: <20060331054942.45238.qmail@web51702.mail.yahoo.com>
In-Reply-To: <20060331054942.45238.qmail@web51702.mail.yahoo.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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-UIDL: 000000000023ceae.00001499
X-MSP-STORE: Fri, 31 Mar 2006 15:52:58 +0200
Status:   

Hi Chris,

I'm I relative newbie when it comes to LibTiff but this link provides basic (but 
good) information on using libtiff:
http://www.remotesensing.org/libtiff/libtiff.html

As noted under the TIFFRBAImage Support section, libtiff already has basic 
support for 16-bit to 8-bit sample conversion already. Assuming that you have 
available memory to read the entire image at once, this looks like it might be 
the quickest way.

Cheers,
-Edward

Chris L. wrote:
> Hi,
> 
> I am in the process of writing a program using openCV
> that analyses 8 bit images. The problem I have is that
> images produced from a fluorescent camera are
> 16 bit unsigned greyscale TIFF images (industry
> standard).
> 
> This is a major project for University (DNA Microarray
> Image Analysis)
> 
> I would like to convert this image to an 8 bit
> greyscale image so that I can analyse and display the
> image with intensities in proportion with the original
> image.
> 
> The way I would like to do this is to get every pixels
> intensity value (16 bit) and Square root it to bring
> it into the range between 0 and 255.
> 
> I am very much a newbie to the LibTIF package so any
> help will be greatly appreciated.
> 
> I would like to steer away from using other programs
> to accomplish this task so I can combine it into the
> analysis program.
> 
> This part is pretty urgent. The analysis is complete I
> am now trying to get TIFF images working with it.
> 
> Regards,
>    Chris Le Brese
> 
> 
> 	
> 
> 	
> 		
> ____________________________________________________ 
> On Yahoo!7 
> Messenger - Make free PC-to-PC calls to your friends overseas. 
> http://au.messenger.yahoo.com 
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

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