I want to determine length of filaments from image

You need to use Hogh transformation Hough Transforms in Image Processing - Scaler Topics