Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rotate function works

  • Loading branch information...
commit a1b651e38df8add63f12bc3cc26c5e1c7d8d6637 1 parent eec19cb
dezyal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 OCR/Rotation.ml
View
4 OCR/Rotation.ml
@@ -5,10 +5,10 @@
*)
let rotate mtx w h angle =
let a = Tools.deg2rad angle in
- let new_w = int_of_float(
+ (*let new_w = int_of_float(
(float)w*.cos(a) +. (float)h*.sin(a))
and new_h = int_of_float(
- (float)w*.sin(a) +. (float)h*.cos(a)) in
+ (float)w*.sin(a) +. (float)h*.cos(a)) in*)
let new_mtx = Array.make_matrix w h 255 in
for x = 0 to w-1 do
for y = 0 to h-1 do
Please sign in to comment.
Something went wrong with that request. Please try again.