Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Program to convert image and rotate

Name: Anonymous 2012-10-21 11:50

I've been trying to make this program in c++ with opencv that converts the image to greyscale and rotates the image afterwards, but the output I get is all kinds of messed up.

I haven't been able to find what the hell I have done wrong so if any of you could help me it'd be great

http://pastebin.com/FSJKyaeU

Name: Anonymous 2012-10-22 10:34

>>1
Just move each pixel to a x*(cos angle), y*(sin angle), then fill result pixels with closest matching rotated-neighbors. Using a simple N-linear interpolation will greatly increase rotation quality.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List