Dear All:

    Hi.  I am new to this whole open source development thing, but
really I believe in the movement and believe I am finally ready to
contribute something.

    Do you know how, whenever you scan a book or magazine page, the
image is inevitably a little bit crooked?  I've always wanted an
automatic way to rotate the resulting image so that any lines of text
are horizontal, and I've done some searching for an open-source program
to do this for me.  I haven't had any luck, so I decided to try to
tackle the job myself.  I took image processing and machine vision
classes in grad school, so I hope to figure something out that works, is
robust, and relatively fast ( <1 seconds for a typical image on a single
processor 3GHz machine ).

    I have an algorithm prototyped in ocatave that detects the number of
degrees that the image needs to be rotated, and I imagine the next steps
are for me to try it on a couple hundred (thousand?) test images to
ensure robustness and then to write a version of the algorithm for
imagemagick.  I am writing to touch base with the imagemagick community
and get feedback on how my project would best be aproached.

    What is the most efficient way for me to start developing this
function for imagemagick? 

    Is there a preferred language (There seems to be C, C++, and maybe
other languages involved)?

    Is there a template for a .c or .cpp file that would be good for me
to use? 

    I basically want to be able to make this function without having to
read thousands of lines of imagemagick code to figure out how my
function is best designed to interface with the rest of the software. ;)  
  
    I imagine that the inputs to my function would be some sort of
imagemagick internal data structure for an image, and the outputs would
be an angle (a double probably, should it be in radians or degrees?  )? 
I'm hoping that with that function in place, one of the main developers
could make an -auto-rotate option for 'convert' that calls my function
and then rotates the image by that amount.  Does that sensible to you guys?

    Thank you so much for your help!

Sincerely,
Andy Doucette
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to