jdber1 / opendrop

OpenDrop pendant drop tensiometry software
GNU General Public License v3.0
30 stars 18 forks source link

Is it possible to display the pixel/mm scale yourself, and not automatically? #51

Open Kaiman777 opened 3 months ago

Kaiman777 commented 3 months ago

Hello! Is it possible to display the pixel/mm scale yourself, and not automatically? The program calculates the scale using the diameter of the needle. Is it possible to enter the needle size in pixels or the pixel scale manually? For example, edit param.ini and run the measurement with these settings?

eugenhu commented 3 months ago

That could be possible as a new feature, are you running this on linux or windows by the way? I can make the edits in the source code but it's been a while since I've built the Windows distribution, and re-figuring out how to do that will take me some time.

Kaiman777 commented 3 months ago

We mostly use Windows. If you have the opportunity to update the build for Windows it will be very good. I can collect more feedback on what settings other people would like.

Kaiman777 commented 3 months ago

For example, a colleague asks about the possibility of displaying the diameter of the contact spot of a lying drop (the distance between the points of intersection of the legs with the line of the substrate).It would be great if you add it.

eugenhu commented 2 months ago

I'll need to try installing opendrop on my windows laptop using Anaconda, and then try to implement the two features you request. I don't have a lot of time to work on this project anymore though so it might take me some time to complete this, apologies.

Kaiman777 commented 1 month ago

Thanks a lot. When can we expect an update?

eugenhu commented 1 month ago

Sorry for the lack of updates. I'm currently quite busy with other work at the moment. Although this feature is not necessarily hard to implement, I might need another month before I find time for this. Thanks for your patience.

eugenhu commented 2 weeks ago

Ok, sorry for the slow update again. But I've hacked together this manual image scale feature. Here's the patched windows zip: https://github.com/jdber1/opendrop/releases/download/v3.3.2/OpenDrop-3.3.2-Windows.zip

If you manually specify a px/mm, you don't have to select a needle region anymore. Try water_in_air001.png from the example images below with 150.45 px/mm.

Example images: https://github.com/jdber1/opendrop/releases/download/v3.3.0/example_images.zip

Let me know if you have any other questions. I don't think I have the time to implement displaying the diameter of the contact spot. I may get around to it eventually but I can't promise a timeline. This project probably needs a new maintainer to be honest if there is interest for more features to be implemented.

Kaiman777 commented 2 weeks ago

Thank you very much for this version. We'll try to use it and if there are any errors we'll let you know.