I am trying to measure the cross-section of a corroded rebar from the photograph, but I do not have the object distance measured prior to taking the image. Either I should be able to calibrate some other known distance in the same photograph and then measure the cross-section with this calibration from the software, else I need some method to convert the raster image I get to a vector image. Which software would aid me for this purpose with a fairly good accuracy?