Permalink
Browse files

rotate function works

  • Loading branch information...
dezyal dezyal
dezyal authored and dezyal committed Oct 17, 2012
1 parent eec19cb commit a1b651e38df8add63f12bc3cc26c5e1c7d8d6637
Showing with 2 additions and 2 deletions.
  1. +2 −2 OCR/Rotation.ml
View
@@ -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

0 comments on commit a1b651e

Please sign in to comment.