Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15296 > unrolled thread

Re: needs the option ColorFunction, any good workaround?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-08-12 10:38 +0000
Last post2013-08-12 10:38 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: needs the option ColorFunction, any good workaround? Bob Hanlon <hanlonr357@gmail.com> - 2013-08-12 10:38 +0000

#15296 — Re: needs the option ColorFunction, any good workaround?

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-08-12 10:38 +0000
SubjectRe: needs the option ColorFunction, any good workaround?
Message-ID<kuae03$52e$1@smc.vnet.net>
data = RandomInteger[{0, 255}, {8, 12}];


ImageApply[List @@ ToColor[Hue[#/255], RGBColor] &,
 Image[data, ImageSize -> 300]]


ImageApply[List @@ ColorData["TemperatureMap"][#/255] &,
 Image[data, ImageSize -> 300]]


ImageApply[List @@ ColorData["Rainbow"][#/255] &,
 Image[data, ImageSize -> 300]]



Bob Hanlon




On Sat, Aug 10, 2013 at 4:39 AM, sibir <martin.rommel@gmail.com> wrote:

> ArrayPlot and also Image3D have an option ColorFunction. For Image there
> is no such option, for scalar data "GrayScale" is all there is.
>
> Now one can ImageApply Hue like
>
> ImageApply[List @@ ToColor[Hue[#], RGBColor]&, Image[data]]
>
> but how to use other Gradient Color Schemes like "Rainbow" or
> "TemperatureMap"?
>
> I am working with large dataset, so ArrayPlot is not an option (too slow
> and memory inefficient).
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web