Premature end of JPEG file

  • Follow


I am running a script to load in some jpegs from an ultrasound scanner.  When I load in the file using imshow I get the following warning:
Warning: Premature end of JPEG file 

despite getting this warning I cans still view the image ok and take the measurments from it that I require.  Can anyone think why I might be getting this warning despite the file still being readable?  Unfortunately the ultrasound scanner is very basic and the only output format seems to be jpeg.
thanks
Oli 
0
Reply Oliver 1/28/2011 3:32:03 PM

Haha, you probably just have to work on your self control...

But everything I've seen on this indicates it's probably a corrupt .jpeg file

"Oliver Warlow" wrote in message <ihunhj$ame$1@fred.mathworks.com>...
> I am running a script to load in some jpegs from an ultrasound scanner.  When I load in the file using imshow I get the following warning:
> Warning: Premature end of JPEG file 
> 
> despite getting this warning I cans still view the image ok and take the measurments from it that I require.  Can anyone think why I might be getting this warning despite the file still being readable?  Unfortunately the ultrasound scanner is very basic and the only output format seems to be jpeg.
> thanks
> Oli 
0
Reply Joseph 1/28/2011 5:14:03 PM


> But everything I've seen on this indicates it's probably a corrupt .jpeg file

I assumed it was a corrupt file, however I am still able to open the file ok.  Doyou think the corruption will have an effect on the image itself?

Oli
0
Reply Oliver 1/31/2011 3:55:05 PM

Oliver Warlow:
Who knows?  Maybe the last few lines are missing.  Maybe the last
pixel is missing.  Does anything look weird down there?  If not, maybe
it won't affect your work and you can just suppress the warning or
ignore it by wrapping the code in a try/catch.  What it did read in
was probably intact and accurate if it looks okay, but who knows what
might be missing?
0
Reply ImageAnalyst 1/31/2011 7:21:45 PM

3 Replies
643 Views

(page loaded in 0.047 seconds)

Similiar Articles:













7/21/2012 8:53:04 PM


Reply: