Interface PrairieView/Matlab to extract coordinates of longest line from image