Message Boards Message Boards

0
|
8521 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to create an array with an scale of green color using Image command?

Posted 11 years ago
Dear,

I have tried to create an 3x3 array from dark to light green using the Image command. I know how to create this array using ArrayPlot but I need an image in order to create a 3D image from a stack of images with Image3D (see the attached file). Could you help me?

thank you,
Antonio Squadri
Attachments:
POSTED BY: Antonio Squadri
2 Replies
A more straight forward approach would be something like this:
Image[ArrayReshape[
  List @@@ Array[Hue[.33, 1, #] &, 9, {0, 1}], {3, 3, 3}],
ColorSpace -> "HSB"]

POSTED BY: Shadi Ashnai
In[77]:= cf = Image[
ArrayPlot[RandomReal[{0.2,0.3}, {3, 3}],
   ColorFunction -> "BlueGreenYellow"]]
will not do? At least it is an Image
In[79]:= ImageQ[cf]

Out[79]= True
the ColorFunction "BlueGreenYello" you could modify
POSTED BY: Udo Krause
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract