Search code examples
graphicswolfram-mathematicapixelconvertersdrop

How to export below image graph from pixels to millimeters?


A linear graph of the drop curve is taken from this image, but the graph is too large because it is in pixels, it is necessary to convert the graph data in Mathematica to millimeters.

Drop

Graphic


Solution

  • This should help you get started

    img = Import["https://i.sstatic.net/nnxka.png"];
    
    img // RemoveBackground // AlphaChannel // EdgeDetect // Thinning // 
     ImageMesh[#, Method -> "MarchingSquares"] & // Show[#, Axes -> True, ImageSize -> 500] &
    

    enter image description here

    You can use the DataRange option to ImageMesh to shift/scale the values as needed.