程序源码:http://download.csdn.net/detail/jsgaobiao/9456641
Ø 【作业要求】
1. Get your matlab platform ready. Payspecial attention to the image processing toolbox.
2.Use matlab functions to convert the attached image from .jpg to binary .ppm format. Save it as greens.ppm.
3. Write your own imread(‘*.ppm’) functioncode to read the newly generated .ppm file.
4. Submit your code, result, and report.
选做:尝试设计你的 .pgm和.pbm读写程序。
Ø 【文件说明】
jpg2ppm.m:
Use matlab functions to convert theattached image from .jpg to binary .ppm format. Save it as greens.ppm
imread_pxm.m:
Myown imread() function code to read .ppm/.pgm/.pbm file which can beencoding ineither ASCII or Binary.
imwrite_pxm.m:
Myown imwrite() function code to write.ppm/.pgm/.pbm file which canbe encoding ineither ASCII or Binary.
test_imread_pxm.m:
Use imread_pxm() t