Menu

Frame parameters - estimated instead of real

Help
2005-04-18
2013-04-15
  • Mike Grigorov

    Mike Grigorov - 2005-04-18

    I downloaded JSane-Net to use as a scanning API and encountered the following symptom: After scanning the image was distorted. I downloaded the source and explored it. In JSane_Base_Frame._makeRGBFrame() I found out that the lines in the frame data contained a different number of pixels than returned by pixels per line.

    I read a little documentation about sane and dicovered that getting parameters before calling sane_start returns estimated scan parameters. That's why I added dev.getParameters() call in JSane_Net_Frame after the scan data was retrieved and set the received parameters to the frame and the sub-frames. That solved the problem, but it's ugly and I don't know if it is always true.

    Since I intend to use this API heavier I would like to know if I could somehow participate in this project, since it seems I will work on my version of code in case I find problems.

    Thanks for your time
    Mike

     
    • Andi McLean

      Andi McLean - 2005-06-09

      Hi Mike.

      I would appricate any help you could give. If you would like to send some patches. I would gratefully look at them, and include them in the main tree.

      Maybe in a while, I could give you developer status on my project.

      Andi

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.