摘要:
void SearchImgFile(CString strFilePath,CString strFileType,vector<CString> &arrFileList) { CFileFind fFinder; CString strFile; strFilePath.TrimRight(" 阅读全文
摘要:
#include <png.h> #include <iostream> #include <fstream> void invertImageColors(const char* inputFilename, const char* outputFilename) { FILE *fp = fop 阅读全文
摘要:
二值化(Binarization)是将灰度图像转换为黑白图像的方法。通常,选择一个 阈值(threshold),如果像素值大于该阈值,则设为 白色 (255),否则设为 #include <windows.h> HANDLE WINAPI BIPImgUnicolor(HANDLE hDib) { 阅读全文
摘要:
亮度调节的原理是:对 每个像素的 R、G、B 分量 加上 brightness 值,并确保结果在 0 - 255 之间。 #include <windows.h> HANDLE WINAPI BIPImgLight(HANDLE hDib, long brightness) { if (!hDib) 阅读全文
摘要:
#include <windows.h> HANDLE WINAPI BIPImgSoften(HANDLE hDib, long soften = 8) { if (!hDib || soften <= -8) return NULL; // 锁定 DIB 句柄,获取 BITMAPINFOHEAD 阅读全文