Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: needs the option ColorFunction, any good workaround?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131498] Re: needs the option ColorFunction, any good workaround?
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Mon, 12 Aug 2013 06:39:13 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20130810083934.914A26A0E@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 at 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).
>
>
>




  • Prev by Date: Image[] needs the option ColorFunction, any good workaround?
  • Next by Date: How to import a mp4 file on Mathematica
  • Previous by thread: Image[] needs the option ColorFunction, any good workaround?
  • Next by thread: Re: needs the option ColorFunction, any good workaround?