Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EB26104A4 for ; Sat, 22 Mar 2014 14:13:51 +0000 (UTC) Received: (qmail 94830 invoked by uid 500); 22 Mar 2014 14:13:48 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 94315 invoked by uid 500); 22 Mar 2014 14:13:46 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 94307 invoked by uid 99); 22 Mar 2014 14:13:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 14:13:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.74.71.27] (HELO eir.is.scarlet.be) (193.74.71.27) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Mar 2014 14:13:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scarlet.be; s=scarlet; t=1395497596; bh=tKIhWcp4LSLyEndw5/HMkm98tKtTZMg5zuKrogRngjw=; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To: Subject:Message-ID; b=hnB84RFRlq7jITlwURadySeV96GQwwgxBDPNZZMZXCodvvK1T2HVOUhW4ig3o7Wtl JPPdij7h3FUn0iICCSdoOpBHQBXgm7vrZ8LPv6zD/pYFzDJU8D9acs40V9Fkobx8EA Py2pkLjsqHILxis60vTVZaqueQ6xpjk+0/yb/N14= Received: from webmail.scarlet.be (meigs.is.scarlet.be [193.74.71.216]) by eir.is.scarlet.be (8.14.5/8.14.5) with ESMTP id s2MEDGVc011784 for ; Sat, 22 Mar 2014 15:13:16 +0100 X-Scarlet: d=1395497596 c=193.74.71.216 Received: from ip-83-134-165-175.dsl.scarlet.be ([83.134.165.175]) via ip-83-134-165-175.dsl.scarlet.be ([83.134.165.175]) by webmail.scarlet.be with HTTP (HTTP/1.1 POST); Sat, 22 Mar 2014 15:13:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 22 Mar 2014 15:13:15 +0100 From: Gilles To: Subject: [imaging] Image from 2D-array of =?UTF-8?Q?=22double=22s=3F?= Message-ID: X-Sender: gilles@harfang.homelinux.org User-Agent: Scarlet Webmail X-DCC-scarlet.be-Metrics: eir; whitelist X-Virus-Scanned: clamav-milter 0.97.1-exp at eir X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hello. I wish to easily generate an image representing the data stored in a double[][]. Each array element is a pixel of the resulting image (the entry at (0, 0) is the bottom-left pixel of the image). Then, is there some tool to automatically map a selected range of data values into a palette of colours[1]? Thanks for your advice, Gilles [1] Values outside the range should be mapped to e.g. black, or even better, made transparent. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org