博客
关于我
【数字图像处理】三.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/

    你可能感兴趣的文章
    Openlayers中多图层遮挡时调整图层上下顺序
    查看>>
    Openlayers中实现地图上打点并显示图标和文字
    查看>>
    Openlayers中实现地图上添加一条红色直线
    查看>>
    Openlayers中将某个feature置于最上层
    查看>>
    Openlayers中点击地图获取坐标并输出
    查看>>
    Openlayers中设置定时绘制和清理直线图层
    查看>>
    Openlayers入门教程 --- 万字长篇
    查看>>
    Openlayers图文版实战,vue项目从0到1做基础配置
    查看>>
    OpenLayers学习三:地图旋转及地图跳转到某一点的方式(以类为接口)
    查看>>
    OpenLayers学习二:点标记的添加删除和修改(以类为接口)
    查看>>
    Openlayers实战教程学习大纲及引导
    查看>>
    Openlayers实战:LayerGroup添加删除显示隐藏
    查看>>
    Openlayers实战:loadstart和loadend事件
    查看>>
    Openlayers实战:modifystart、modifyend互动示例
    查看>>
    Openlayers实战:moveend事件,利用calculateExtent获取地图左上和右下的坐标
    查看>>
    Openlayers实战:overlay上播放视频
    查看>>
    Openlayers实战:select简介及select选择feature实战
    查看>>
    Openlayers实战:个性化比例尺
    查看>>
    Openlayers实战:使几何图形适配窗口
    查看>>
    Openlayers实战:判断共享单车是否在电子围栏内
    查看>>