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

    你可能感兴趣的文章
    Objective-C实现knapsack背包问题算法(附完整源码)
    查看>>
    Objective-C实现knapsack背包问题算法(附完整源码)
    查看>>
    Objective-C实现knight tour骑士之旅算法(附完整源码)
    查看>>
    Objective-C实现knight Tour骑士之旅算法(附完整源码)
    查看>>
    Objective-C实现KNN算法(附完整源码)
    查看>>
    Objective-C实现KNN算法(附完整源码)
    查看>>
    Objective-C实现KNN算法(附完整源码)
    查看>>
    Objective-C实现knuth morris pratt(KMP)算法(附完整源码)
    查看>>
    Objective-C实现knuth-morris-pratt(KMP)算法(附完整源码)
    查看>>
    Objective-C实现koch snowflake科赫雪花算法(附完整源码)
    查看>>
    Objective-C实现KPCA(附完整源码)
    查看>>
    Objective-C实现KruskalMST最小生成树的算法(附完整源码)
    查看>>
    Objective-C实现kruskal克鲁斯卡尔算法(附完整源码)
    查看>>
    Objective-C实现kth order statistick阶统计量算法(附完整源码)
    查看>>
    Objective-C实现lamberts ellipsoidal distance朗伯椭球距离算法(附完整源码)
    查看>>
    Objective-C实现largest AdjacentNumber最大相邻数算法 (附完整源码)
    查看>>
    Objective-C实现largest subarray sum最大子数组和算法(附完整源码)
    查看>>
    Objective-C实现largestPrime最大素数的算法 (附完整源码)
    查看>>
    Objective-C实现lazy segment tree惰性段树算法(附完整源码)
    查看>>
    Objective-C实现LBP特征提取(附完整源码)
    查看>>