多媒體概論

1.在Matlab中,利用imread讀入一張8位元灰階影像,並將其改成1位元單色影像的程式該如何寫?

2.利用1位元影像格式,可不可以做出灰階的效果?該如何做?請說明方法。

1 個解答

評分
  • Chen
    Lv 6
    6 年前
    最佳解答

    Color processing and enhancement( stretch, rotate, shear image) are basic function for image processing.

    JPG file is converted into bmp file or Bmp file is converted into jpg file.

    0.JPG file is converted into binary white & black file

    1.JPG file is converted into 4 bit grey level file

    2 JPG file is converted into 8 bit grey level file

    3.JPG file is converted into 8 bit colors file

    4.JPG file is converted into 16 bit grey file

    5 JPG file is converted into 16 bit colors file

    6 JPG file is converted into 24 bit colors file

    7 JPG file is converted into 36 bit colors file

    8 JPG file is converted into 48 bit colors file

    for example:

    1. Convert 24 colors into 8 grey level

    圖片參考:https://s.yimg.com/rk/AC08187637/o/1113702426.jpg

    2.Convert 24 colors into 4 grey level

    圖片參考:https://s.yimg.com/rk/AC08187637/o/395732711.jpg

    3. Convert 24 colors into binary file ( 1bit) without dither method

    圖片參考:https://s.yimg.com/rk/AC08187637/o/469621466.bmp

    4. Convert 24 colors into binary file with FS filter

    圖片參考:https://s.yimg.com/rk/AC08187637/o/892967988.bmp

    5. Convert 24 colors into binary file with Stucli filter

    圖片參考:https://s.yimg.com/rk/AC08187637/o/2093797463.bmp

還有問題?馬上發問,尋求解答。