Commit [b1ba33] default  Maximize  Restore  History

Changes to handle MxNx3 images of different numeric classes:

* imread.m: Return the appropriate numeric class. Colour images are of size MxNx3, gray images MxN.
Uses ImageMagick's "identify" to find the image type (b&w/grayscale/colour).

* jpgread.cc: Error handler modified to prevent segfaults. Colour images are returned as MxNx3
matrices, gray images as MxN. Conversion from colour to grey-level is not done anymore (rather use
im2gray).

* pngread.cc: No segfault on loading invalid file types. Handle different depths correctly. Split
into pngread, pngwrite and pngcanvas. Return the appropriate numeric classes and matrix sizes.

* imread.m: Prefer jpgread and pngread to ImageMagick.

sjvdw sjvdw 2005-09-10

changed Makefile
changed imread.m
changed jpgread.cc
added pngcanvas.h
changed pngread.cc
added pngwrite.cc
Makefile Diff Switch to side-by-side view
Loading...
imread.m Diff Switch to side-by-side view
Loading...
jpgread.cc Diff Switch to side-by-side view
Loading...
pngcanvas.h Diff Switch to side-by-side view
Loading...
pngread.cc Diff Switch to side-by-side view
Loading...
pngwrite.cc Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks