91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 8.75MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-10
  • 語言: C/C++
  • 標簽: 1;2??

資源簡介

VS平臺下可直接運行,里面有示范圖像,可供調試,輸入單通道或三通道, C語言,移植性強

資源截圖

代碼片段和文件信息

#include?“stdafx.h“
#include?“windowsx.h“
#include?“math.h“
#include?“BianYuanJianCeDib.h“
#include?“MainFrm.h“
#include?“DynSplitView2.h“
?
BianYuanJianCeDib::BianYuanJianCeDib()
{
??
}
BianYuanJianCeDib::~BianYuanJianCeDib()
{
}

/***************************************************************/
/*函數名稱:Templat(BYTE?*m_pdata?int?wide?int?height?int?tempH?int?tempW?int?tempMX?int?tempMY?float?*fpArray?float?fCoef)?????????????????????????????????????????*/
/*函數類型:void???????????????????????????????????????????????*/
/*參數:BYTE*?m_pdata:指向原DIB圖像指針????????????????????????*/
/*??????int?wide:原圖像寬度????????????????????????????????????*/
/*??????int?height:原圖像高度??????????????????????????????????*/
/*??????int?tempH:模板高度?????????????????????????????????????*/
/*??????int?tempW:模板寬度?????????????????????????????????????*/
/*??????int?tempMX:模板的中心元素X坐標(/*??????int?tempMY:模板的中心元素Y坐標(/*??????float?*fpArray:指向模板數組的指針??????????????????????*/
/*??????float?fCoef:模板系數??????????????????????????????????*/
/*返回值:處理成功返回TRUE;處理失敗返回FALSE。?????????????????*/
/*功能:用指定模板對灰度圖像進行操作。?????????????????????????*/
/***************************************************************/
void?BianYuanJianCeDib::Templat(BYTE?*m_pdata?int?wide?int?height?int?tempH?int?tempW?int?tempMX?int?tempMY?float?*fpArray?float?fCoef)
{???
int?ijkl;??//循環變量
????BYTE*??temp=new?BYTE[wide*height];????//新圖像緩沖區
//初始化新圖像為原始圖像
????memcpy(?tempm_pdatawide*height);
????float?fResult;????//像素值計算結果
for(j=tempMY;j for(i=tempMX;i {
//計算像素值
fResult=0;
for(k=0;k for(l=0;l fResult=fResult+m_pdata[(j-tempMY+k)*wide+(i-tempMX+l)]*fpArray[k*tempW+l];
//乘上系數
fResult*=fCoef;
//取絕對值
fResult=(float)fabs(fResult);
//判斷是否超過255
if(fResult>255)
//若超過255,直接賦值為255
????????????????temp[j*wide+i]=255;
else
//未超過255,賦值為計算結果
temp[j*wide+i]=(int)(fResult+0.5);
}
????memcpy(m_pdata?tempwide*height);???//復制處理后的圖像
delete??temp;
}

/***************************************************************/
/*函數名稱:Templat24bit(BYTE?*m_pdata?int?DibWidth?int?height?int?tempH?int?tempW?int?tempMX?int?tempMY?float?*fpArray?float?fCoef)?????????????????????????????????????????*/
/*函數類型:void???????????????????????????????????????????????*/
/*參數:BYTE*?m_pdata:指向原DIB圖像指針????????????????????????*/
/*??????int?DibWidth:原圖像寬度????????????????????????????????*/
/*??????int?height:原圖像高度??????????????????????????????????*/
/*??????int?tempH:模板高度?????????????????????????????????????*/
/*??????int?tempW:模板寬度?????????????????????????????????????*/
/*??????int?tempMX:模板的中心元素X坐標(/*??????int?tempMY:模板的中心元素Y坐標(/*??????float?*fpArray:指向模板數組的指針??????????????????????*/
/*??????float?fCoef:模板系數??????????????????????????????????*/
/*返

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????216056??2002-09-07?11:12??銳化邊緣檢測\24位圖.bmp

?????文件??????28418??2017-12-30?09:10??銳化邊緣檢測\BianYuanJianCeDib.cpp

?????文件????????577??2004-03-31?15:49??銳化邊緣檢測\BianYuanJianCeDib.h

?????文件???????4737??2017-12-30?09:11??銳化邊緣檢測\Cdib.cpp

?????文件????????826??2004-03-28?12:17??銳化邊緣檢測\Cdib.h

?????文件??????41626??2017-12-30?09:10??銳化邊緣檢測\Debug\BianYuanJianCeDib.obj

?????文件??????12468??2017-12-30?09:11??銳化邊緣檢測\Debug\BuildLog.htm

?????文件??????22760??2017-12-30?09:11??銳化邊緣檢測\Debug\Cdib.obj

?????文件?????131584??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.exe

?????文件????????920??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.exe.embed.manifest

?????文件????????984??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.exe.embed.manifest.res

?????文件????????861??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.exe.intermediate.manifest

?????文件????1597960??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.ilk

?????文件??????35993??2014-04-09?15:56??銳化邊緣檢測\Debug\DSplit.obj

?????文件???22872064??2014-04-09?15:56??銳化邊緣檢測\Debug\DSplit.pch

?????文件????3419136??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.pdb

?????文件???????9156??2017-12-30?09:11??銳化邊緣檢測\Debug\DSplit.res

?????文件??????28712??2014-04-09?15:56??銳化邊緣檢測\Debug\DSplitDoc.obj

?????文件??????35637??2014-04-09?15:56??銳化邊緣檢測\Debug\DSplitView.obj

?????文件??????29229??2014-04-09?15:56??銳化邊緣檢測\Debug\DynSplitterWnd.obj

?????文件??????44718??2014-04-09?15:56??銳化邊緣檢測\Debug\DynSplitView2.obj

?????文件??????38651??2014-04-09?15:56??銳化邊緣檢測\Debug\MainFrm.obj

?????文件?????????67??2017-12-30?09:11??銳化邊緣檢測\Debug\mt.dep

?????文件?????407282??2014-04-09?15:56??銳化邊緣檢測\Debug\StdAfx.obj

?????文件?????879616??2017-12-30?09:11??銳化邊緣檢測\Debug\vc90.idb

?????文件????1765376??2017-12-30?09:11??銳化邊緣檢測\Debug\vc90.pdb

?????文件??????31628??2010-11-15?13:42??銳化邊緣檢測\DSplit.aps

?????文件???????3389??2010-11-15?13:45??銳化邊緣檢測\DSPLIT.CLW

?????文件???????4158??2003-04-01?08:51??銳化邊緣檢測\Dsplit.cpp

?????文件???????5170??2004-03-31?15:33??銳化邊緣檢測\DSplit.dsp

............此處省略64個文件信息

評論

共有 條評論

相關資源