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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. 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?

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

Announcements

Top Tags