cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Grey Scale Images

ptc-3016452
1-Newbie

Grey Scale Images

How do you make MathCad display a grey-scale image?

Rumour has it that the pixel values are integers from 0 to 255.

Could somebody tell me the data type that is displayed

and the command that puts it on the screen?

A JPEG save would be nice too.

1 ACCEPTED SOLUTION

Accepted Solutions

Attached is a VERY simple example

View solution in original post

23 REPLIES 23

There used be an example in "help."

"No topic found' for both Grey Scale and Gray Scale

Is it too trivial for them to bother with or did they forget to keep it?

May be this picture help you:

4-CheMatrix.PNG

Bill, see also this :

GolfGreyColor.JPG

Viktor

Viktor

Victor

Thank you for the reply but this is the inverse of my problem.

If I want to see an image calculated by MathCad,

I need to know what kind of data structure to load,

and what command to use to make it into the image.

Bill

Can you attach Mathcad worksheet?

Viktor

Attached is a VERY simple example

Or another VERY simple example

0401121.GIF

Virtor

Viktor

Thank you Fred and Valery and Viktor.

Too bad MatCad doesn't believe in synonyms in their 'Help' index,

which, incompetantly, doesn't breathe a mention of 'grey scale'.

This is a common failing of big software packages,

that you can never guess what they call things

that could be described in several ways,

only one of which they bother to consider.

Instead the hapless newbie has to depend upon the charity of volunteers,

so ncomplete is the package he paid for so dearly.

No doubt PTC will continue to ignore this elementary issue,

which could easily be remedied by using outsider newbies for beta testers,

rather than the program designers, who already know all the answers.

Are you listening PTC? Get a GLOSSARY!!!!!

RichardJ
19-Tanzanite
(To:ptc-3016452)

When I search the help for "grayscale" I get four hits. One of them is "Working with a picture". That page, and the other pages it links to, gives you the information you were looking for.

HA HA, silly me for typing in 'GREY SCALE" as two words.

PTC couldn't bother putting the universal two-word rendition in their dictionary?

No, only their own lazily parochial one-word variant is most unhelpfully there.

RichardJ
19-Tanzanite
(To:ptc-3016452)

If you had looked for "image" or "picture" you would also have found what you wanted.

I can't remember the trick of how to make the notation i:=0..255

I don't see it anywhere in Maxfield's clumsy textbook

and I can't imagine what the Help file would call it.

When I type it in literally I get a useless red 'syntax error'.

Would it be too much for that warning to link to a cure?

RichardJ
19-Tanzanite
(To:ptc-3016452)

The first operator is assignment, which you get with a colon, ":". The right hand side is a range variable. You get the two dots with a semicolon, ";". The range variable is also on the Vector and Matrix toolbar.

Thank you Richard.

It's too bad I have to trouble you for something so elementary,

but there's no help entry for 'semicolon'.

Why couldn't that useless syntax error message just tell me to try a semicolon?

Upon reading the intro on 'range variables', the only thing I see is 0,1,..n and nothing about 0..n

so I was forced to conclude that the latter is something else entirely.

Look also in the package of extensions for Mathcad "The Image Processing Extension Pack" in the main menu of Mathcad choose "Help" -> "E-books" -> "Image Processing":

Pic_1.PNG

P.S. What version of Mathcad are you using?

version 14.0.2.5

Could you tell me why the COPY button doesn't put anything on the clipboard?

Could you tell me why the WRITEBMP command creates no files whatsoever?

Thank you Vladimir for this. I never would have found it on my own, so hidden it is.

By the way, doing the WRITEBMP the way this book says DOES work,

whereas the format in the main help file does NOT.

PTC please correct that error.

Bill Parkyn wrote:

Could you tell me why the WRITEBMP command creates no files whatsoever?

Please provide a example.

The HELP file says to do this WRITEBMP("file", [M]) WHICH DIDN'T WORK

whereas the image proc book said what worked WRITEBMP("file"):=M

RichardJ
19-Tanzanite
(To:ptc-3016452)

WRITEBMP("file", [M]) WHICH DIDN'T WORK

Did you put it on the right hand side of a defintion operator?

I don't have a way to check the version 14 help, but version 15 says:

WRITEBMP("file", [M]) Creates an grayscale bitmap image file. This function can be used either on the right or the left side of the definition operator. When used on the right, you must supply the argument M, the name of the matrix to write to the file. In this case, the function returns 0. When used on the left, do not supply the argument M, but instead place it on the right hand side of the definition.

which also covers the case in the image processing book.

RichardJ
19-Tanzanite
(To:ptc-3016452)

A grayscale image is a matrix of numbers between 0 and 255. If you want to view it go to "Insert" "Picture", as shown by Viktor, and type the name of the matrix into the placeholder.

One gray scale animation: http://communities.ptc.com/videos/2310

Top Tags