I have some problem with image processing (24-color bmp and 8-bit grayscale).
I have read a *.bmp file.
Can anyone help to rotate and flip bitmap image(using C++, without openCV library)?
Thanks.
dreamcode2412
0
Newbie Poster
Recommended Answers
Jump to PostRepresent the image as a 2D array of pixels. Make a new blank 2D array of the same size.
Flipping:
For all width and all height, copy pixel[i, j] to newpixel[height-i, j] (remember to start counting at zero).Rotation is a similar simple transformation. This is programming. The art, craft …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.