It is very easy to set up the measure task with the Measure Assistant:
The Input tab offers two more options that you can use if necessary. If you already have calibration data available, you can load the data as described in the paragraph Calibration Source, otherwise just return to the Input tab later. A more advanced feature is changing the mode of the expected gray-value range which is only relevant if your image data uses more than 8 bits. Read more about this topic under Expected Gray Value Range.
In case your edge extraction is not as successful as expected, further improvements can be made using the fuzzy measuring function of the assistant.