To get the width of each line into a pixel value use the attached sample. It will count the length of each line and will output the width as a pixel.
Extension: If you need to get only the width of a frame you need to remove all lines except the one for measurement.
Debugging Library operators: If you just need to read the width of an image using a parameter you can use the operators of the debugging library instead.
See attached VA design file.