WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
8542 Views
|
2 Replies
|
2 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Image Processing
Mathematica
How to create an array with an scale of green color using Image command?
Antonio Squadri
Antonio Squadri
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
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
2
Shadi Ashnai
Shadi Ashnai, Wolfram Research, Inc.
Posted
11 years ago
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
Reply
|
Flag
0
Udo Krause
Udo Krause, NOrganization
Posted
11 years ago
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
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback