Kian,
With the image you have given, my first suggestion would be to do an edge detection across a region of your image. From this, you be given a line along with its rotation information. The rotation information can be passed into IMAQ Rotate which will rotate the image the given angle. The key will be finding some information in your image that will consistently give you a angle. If the edge detection is not working for all of your images, you may need to experiment, but the concept will be the same.
Best Regards,
Chris D
NI Applications Engineer