Error in WMDoLineProfile
LaureB
I have got a problem with the package Image Processing and particularly with the option "Image Line Profiles". I have loaded a picture .png, and launched this option but Igor doesn't work anymore (it used to, a week ago) and tells me : "Error in WMDoLineProfile: a wave read;Attempt to operate on a null (missing) wave"
I wrote some procédures that used to work too :
function profil(image,xa,ya,xb,yb)
wave image
variable xa,ya,xb,yb
Make/O/N=2 vect_x={xa,xb}, vect_y={ya,yb}
NewImage image
AppendtoGraph/T vect_y vs vect_x
ImageLineProfile srcWave=image, xWave=vect_x, yWave=vect_y
end
But doesn't work anymore...
I updated the version of Igor to 6.36 but this doesn't solve the problem.
Do you have any idea to explain this sudden problem ?
March 19, 2015 at 07:50 am - Permalink
You may have solved the problem but it has nothing to do with the origins of your image. Specifically, ImageLineProfile does not know nor does it care if the image wave that it operates on has originated from an image file or from random data. JPG and PNG images are read into IGOR as 3D RGB waves. Unless you need color information you should convert these to grayscale before evaluating profiles. The initial error suggests that the procedures were unhappy with the top image in the top graph window at the time the line profile option was selected from the Image menu.
A.G.
WaveMetrics, Inc.
March 19, 2015 at 08:43 am - Permalink