Error in WMDoLineProfile

Good afternoon,

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 ?
I solved the problem : the option ImageLineProfile doesn't work with .png, it does work with .jpeg !
LaureB wrote:
I solved the problem : the option ImageLineProfile doesn't work with .png, it does work with .jpeg !


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.