MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Images made from ColorFunction-supplied Rasters

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116717] Images made from ColorFunction-supplied Rasters
  • From: Ulf-Dietrich Braumann <braumann at uni-leipzig.de>
  • Date: Fri, 25 Feb 2011 06:33:49 -0500 (EST)
  • Reply-to: braumann at uni-leipzig.de

Hello,

I am i bit puzzled looking on the following effect observed in version 8:

While the GrayScale output of

Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}]]
Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}/2]]

is scaled according to the applied factor 2,

once I run

Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}, ColorFunction -> Hue]]
Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}/2, ColorFunction -> Hue]]

or even

Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}, ColorFunction -> GrayScale]]
Image[Raster[{{0, 0.2, 0.4}, {0.6, 0.8, 1}}/2, ColorFunction -> GrayScale]]

the output is identical since some Min-Max-Scaling seems to be applied.

Any ideas how to circumvent this kind of unwanted scaling?

BTW, replacing Image[] with Graphics[] works as expected, but I just 
wanted to go the newly introduced way to directly obtain images from 
rasters.


Thanks for your help - Ulf-Dietrich


  • Prev by Date: Re: Which, Switch, If, and Piecewise
  • Next by Date: Re: How to deal with big matrix 2
  • Previous by thread: Re: Formatting a Cell Programmatically
  • Next by thread: Best way to import 3D files and link its objects with metadata?