ejpgread

read JPEG-file

Synopsis

[image,head]=ejpgread(jpgFileName)

Parameter(s)

imageFileName :

name of JPEG-file e.g.  ‘photo.jpg’

image :

whole JPEG-file in a vector of uchar

head :

1 x 4 vector, [sizeOfJpegFile rowsOfImage colsOfImage rgb]

rgb=1 if color image, rgb=0 if black and white image

Close