papabins/tesseract-android-tools

Add expansion flag to Rotate.rotate()

Closed this issue · 2 comments

What steps will reproduce the problem?
1. Convert Bitmap in to Pix Object
2. Rotate pix with Leptonica using this function from api : 
Rotate.rotate(Pix pixs, float degrees, boolean quality)
I am calling it this way : 
Pix temp = Rotate.rotate(pix, 90f, true);


What is the expected output? What do you see instead?
I am expecting rotated Image , but just a content of the Image is rotated.The 
Image self has old Dimension (I add images, you can see it)
Do I am using wrong this function or this is api issue?
Any help is very welcome.
What version of the product are you using? On what operating system?
tess-two on ubuntu 10.04

Please provide any additional information below.
I am writing with same Problem here : 
http://stackoverflow.com/questions/9376490/rotate-laptonica-pix

Original issue reported on code.google.com by doomdeve...@gmail.com on 22 Feb 2012 at 1:55

Attachments:

The Java version of the rotate() method should provide a flag for expansion of 
the destination image, which should be tested in RotateTest.

Filing another bug re: corruption in the output image.

Original comment by alanv@google.com on 11 Sep 2012 at 8:52

  • Changed title: Add expansion flag to Rotate.rotate()
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

Original comment by alanv@google.com on 14 Sep 2012 at 6:34

  • Changed state: Fixed