24小时热门版块排行榜    

查看: 6354  |  回复: 5

wenqing0220

铜虫 (小有名气)

[求助] matlab实现图像压缩是的压缩率怎么求

请教各位高手,
在看文献的时候注意到图像压缩的时候有一个单位是bpp,bit per pixel。但在图像JPEG,和JPEG2000中应该怎么实现bpp的计算??
希望高手指点~~
回复此楼
悠悠自欢,何必觅知己;剑胆琴心,清风慕竹……
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖

Examples

info = imfinfo('ngc6543a.jpg')

info =

           Filename: [1x95 char]
        FileModDate: '01-Oct-1996 17:19:44'
           FileSize: 27387
             Format: 'jpg'
      FormatVersion: ''
              Width: 600
             Height: 650
           BitDepth: 24
          ColorType: 'truecolor'
    FormatSignature: ''
    NumberOfSamples: 3
       CodingMethod: 'Huffman'
      CodingProcess: 'Sequential'
            Comment: {[1x69 char]}
showmethemoney
2楼2012-05-09 15:06:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wenqing0220

铜虫 (小有名气)

引用回帖:
2楼: Originally posted by csgt0 at 2012-05-09 15:06:40:
Examples

info = imfinfo('ngc6543a.jpg')

info =

           Filename:
        FileModDate: '01-Oct-1996 17:19:44'
           FileSize: 27387
             Format: 'jpg'
      FormatVers ...

没看懂,只是给出了图像的信息吧,我想知道的是图像的压缩比率。bit per pixel,用数学上表达式怎么计算?
悠悠自欢,何必觅知己;剑胆琴心,清风慕竹……
3楼2012-05-10 18:15:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

引用回帖:
3楼: Originally posted by wenqing0220 at 2012-05-10 18:15:40:
没看懂,只是给出了图像的信息吧,我想知道的是图像的压缩比率。bit per pixel,用数学上表达式怎么计算?

bit per pixel不就是像素位数么,就是位深BitDepth啊
showmethemoney
4楼2012-05-11 09:34:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖

★ ★ ★ ★ ★
wenqing0220: 金币+5, ★★★很有帮助 2012-05-14 15:56:52
In computer graphics, color depth or bit depth is the number of bits used to indicate the color of a single pixel in a bitmapped image or video frame buffer. This concept is also known as bits per pixel (bpp), particularly when specified along with the number of bits used. Higher color depth gives a broader range of distinct colors.
showmethemoney
5楼2012-05-11 09:36:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

abing611

新虫 (初入文坛)

同问,请问楼主后来有答案了没?
6楼2015-12-24 23:14:01
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wenqing0220 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 328求调剂,英语六级551,有科研经历 +6 生物工程调剂 2026-03-17 10/500 2026-03-22 20:22 by edmund7
[考研] 307求调剂 +11 冷笙123 2026-03-17 11/550 2026-03-22 20:16 by edmund7
[考研] 318求调剂 +4 plum李子 2026-03-21 7/350 2026-03-22 14:17 by ColorlessPI
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 生物学一志愿985,分数349求调剂 +4 zxts12 2026-03-21 7/350 2026-03-22 09:57 by zxts12
[考研] 资源与环境 调剂申请(333分) +5 holy J 2026-03-21 5/250 2026-03-21 22:42 by Catalysis25
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[考研] 求调剂 +4 要好好无聊 2026-03-21 4/200 2026-03-21 18:57 by 学员8dgXkO
[考研] 一志愿南大,0703化学,分数336,求调剂 +3 收到VS 2026-03-21 3/150 2026-03-21 18:42 by 学员8dgXkO
[考研] 299求调剂 +5 shxchem 2026-03-20 7/350 2026-03-21 17:09 by ColorlessPI
[考研] 0805材料320求调剂 +3 深海物语 2026-03-20 3/150 2026-03-21 15:46 by 无际的草原
[考研] 279分求调剂 一志愿211 +14 chaojifeixia 2026-03-19 15/750 2026-03-21 13:24 by zhukairuo
[考研] 化学求调剂 +4 临泽境llllll 2026-03-17 5/250 2026-03-21 02:23 by JourneyLucky
[考研] 一志愿华中科技大学,080502,354分求调剂 +5 守候夕阳CF 2026-03-18 5/250 2026-03-21 01:06 by JourneyLucky
[考研] 求调剂 +3 @taotao 2026-03-20 3/150 2026-03-20 19:35 by JourneyLucky
[考研] 一志愿南理工085701环境302求调剂院校 +3 葵梓卫队 2026-03-20 3/150 2026-03-20 19:28 by zhukairuo
[考研] 求调剂 +3 暗涌afhb 2026-03-16 3/150 2026-03-20 00:28 by 河南大学校友
[考研] 288求调剂,一志愿华南理工大学071005 +5 ioodiiij 2026-03-17 5/250 2026-03-19 18:22 by zcl123
[考研] 【同济软件】软件(085405)考研求调剂 +3 2026eternal 2026-03-18 3/150 2026-03-18 19:09 by 搏击518
[考研] 有没有道铁/土木的想调剂南林,给自己招师弟中~ +3 TqlXswl 2026-03-16 7/350 2026-03-17 15:23 by TqlXswl
信息提示
请填处理意见