博客
关于我
【数字图像处理】三.MFC实现图像灰度、采样和量化功能详解
阅读量:80 次
发布时间:2019-02-25

本文共 1606 字,大约阅读时间需要 5 分钟。

??VC++6.0 MFC??????

???????BMP??

?VC++6.0 MFC?????????????MFC???????BMP?????????????

  • ???????AppWizard?????????MFC??????????ImageProcessing?

  • ????????????File????Open??????BMP???

  • ????????ImageProcessingView.cpp???ShowBitmap?????LoadImage??????????StretchBlt???????????

  • ??????????OnFileOpen??????FileDialog?????????????ShowBitmap???????

  • ??????OnDraw??????????????.bmp??????ShowBitmap???????


  • ????BMP???????

    ?????BMP?????????????????????????????????????????

  • ???????????ImageProcessingView.h?????????????????????????????????????ReadBmp?SaveBmp???

  • ????????ReadBmp??????fread????BMP?????????????????????????????????????

  • ????????SaveBmp??????fwrite?????????????????????????????

  • ????????OnDraw??????ReadBmp????????????ShowBitmap???????


  • ????????

    ????????????????????????????????????????????????

  • ??????????ImageProcessingView.h?????????ConvertGray???OnDraw?????????

  • ????????ConvertGray???????????????????????????????

    • ????????Gray = 0.299 * R + 0.587 * G + 0.144 * B
    • ????????Gray = (R + G + B) / 3
    • ?????Gray = (R * 28 + G * 151 + B * 77) >> 8
  • ????????OnDraw????????????????????????????????


  • ????????

    ????????????????????????????????????

  • ??????????????????????Level 2?Level 4?Level 8????????????????

  • ??????????OnLh2?OnLh4?????????????????????????Level 2????????????Level 4???????

  • ????????OnDraw???????????????????????????????????


  • ????????

    ????????????????????????????????????

  • ?????????????????????????????????

  • ????????OnCy????????????????????????????????

    • ????????????
    • ??????????
  • ????????OnDraw???????????????????????????????????


  • ??

    ????????????VC++6.0 MFC?????BMP??????????????????????????????????????????????????????????

    转载地址:http://ors.baihongyu.com/

    你可能感兴趣的文章
    PBT
    查看>>
    PB级分析型数据库ClickHouse的应用场景和特性
    查看>>
    pc3-12800
    查看>>
    PCA---主成成分分析
    查看>>
    PCA和自动编码器:每个人都能理解的算法
    查看>>
    pca算法
    查看>>
    PCA降维demo
    查看>>
    SharePoint 2013 图文开发系列之定义站点模板
    查看>>
    PCB生产流程详解-ChatGPT4o作答
    查看>>
    PCB设计十条黄金法则
    查看>>
    SpringSecurity框架介绍
    查看>>
    PCI Express学习篇:Power Management(二)
    查看>>
    pcie握手机制_【博文连载】PCIe扫盲——Ack/Nak 机制详解(一)
    查看>>
    pcm转wav的方法及代码示例
    查看>>
    PC史上最悲剧的16次失败
    查看>>
    PC端恶意代码分析Lab1.1-5.1,从零基础到精通,收藏这篇就够了!
    查看>>
    PC端稳定性测试探索
    查看>>
    PC端编辑 但能在PC端模拟移动端预览的富文本编辑器
    查看>>
    PDB文件:每个开发人员都必须知道的
    查看>>
    springMVC学习(二)
    查看>>