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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Image processing

JW_9781974
6-Contributor

Image processing

When I rotate a coloured image using the functions in Mathcad Prime recalling the image turns out to be in gray scale. How to make Mathcad prime call the rotated image in its original form?

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:JW_9781974)

You've got the wrong order of colours for assembling the rotated picture. The order should be RGB, you've got RBG.

Your augment should be:

LucMeekes_0-1655410038397.png

Consider defining, for rotation of colour pictures:

LucMeekes_0-1655410675658.png

 

Success!
Luc

View solution in original post

3 REPLIES 3
LucMeekes
23-Emerald III
(To:JW_9781974)

If you attach your Prime worksheet, we can better help you...

It appears that you must rotate the red, green and blue segments individually:

Here's rotation of a 4 x 4 pixel colour image over 23 degrees:

LucMeekes_0-1655402844886.png

The resulting image is 4 by 6 pixels, but colourful.

 

Success!
Luc

 

JW_9781974
6-Contributor
(To:LucMeekes)

Thanks for the information I tried following the procedure but the color is not same 

LucMeekes
23-Emerald III
(To:JW_9781974)

You've got the wrong order of colours for assembling the rotated picture. The order should be RGB, you've got RBG.

Your augment should be:

LucMeekes_0-1655410038397.png

Consider defining, for rotation of colour pictures:

LucMeekes_0-1655410675658.png

 

Success!
Luc

Top Tags