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

資源簡介

輸入輸出的是.PGM 格式的圖。 輸入左右圖,生成視差圖 帶有良好的注釋

資源截圖

代碼片段和文件信息

#include?“image.h“

IntImage::IntImage(const?int?wconst?int?hconst?int?b){
width=w;
height=h;
nBands=b;
}

//給對象的widthheightnBands賦值,并分配相應(yīng)大小的內(nèi)存空間
int?IntImage::allocate(const?int?wconst?int?hconst?int?b){
if(w<=0||h<=0||b<=0)
return?0;
else{
width=w;
height=h;
nBands=b;
memory=new?int[w*h*b];
return?1;
}
}

//?返回像素對應(yīng)位置的地址
int*?IntImage::pixel(const?int?wconst?int?hconst?int?b){
int*?p;
p=&memory[h*width*nBands+w*nBands+b];
return?p;//尚方注釋:就是說它返回的是內(nèi)存中的地址
}

FloatImage::FloatImage(const?int?wconst?int?hconst?int?b){
width=w;
height=h;
nBands=b;
}


int?FloatImage::allocate(const?int?wconst?int?hconst?int?b){
if(w<=0||h<=0||b<=0)
return?0;
else{
width=w;
height=h;
nBands=b;
memory=new?float[w*h*b];
return?1;
}
}

float*?FloatImage::pixel(const?int?wconst?int?hconst?int?b){
float*?p;
p=&memory[h*width*nBands+w*nBands+b];
return?p;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-07-11?10:45??ActiveWindow\
?????文件????????4616??2009-08-06?21:45??ActiveWindow\ActiveWindow.dsp
?????文件?????????549??2009-08-05?21:06??ActiveWindow\ActiveWindow.dsw
?????文件???????74752??2010-01-10?10:52??ActiveWindow\ActiveWindow.ncb
?????文件???????54784??2010-01-10?10:52??ActiveWindow\ActiveWindow.opt
?????文件????????1620??2010-01-06?19:44??ActiveWindow\ActiveWindow.plg
?????目錄???????????0??2010-07-11?10:45??ActiveWindow\Debug\
?????文件??????779264??2010-01-06?19:44??ActiveWindow\Debug\ActiveWindow.bsc
?????文件??????278596??2010-01-06?19:44??ActiveWindow\Debug\ActiveWindow.exe
?????文件??????410272??2010-01-06?19:44??ActiveWindow\Debug\ActiveWindow.ilk
?????文件???????43520??2009-10-12?21:31??ActiveWindow\Debug\ActiveWindow.opt
?????文件?????2479440??2010-01-06?19:44??ActiveWindow\Debug\ActiveWindow.pch
?????文件?????1393664??2010-01-06?19:44??ActiveWindow\Debug\ActiveWindow.pdb
?????文件????????5898??2009-08-08?20:02??ActiveWindow\Debug\image.obj
?????文件???????????0??2009-08-08?20:02??ActiveWindow\Debug\image.sbr
?????文件???????40643??2010-01-06?19:44??ActiveWindow\Debug\main.obj
?????文件???????????0??2010-01-06?19:44??ActiveWindow\Debug\main.sbr
?????文件???????47676??2010-01-06?19:44??ActiveWindow\Debug\matchParameters.obj
?????文件???????????0??2010-01-06?19:44??ActiveWindow\Debug\matchParameters.sbr
?????文件??????156672??2010-01-07?10:58??ActiveWindow\Debug\vc60.idb
?????文件??????143360??2010-01-06?19:44??ActiveWindow\Debug\vc60.pdb
?????文件?????????996??2009-08-08?20:02??ActiveWindow\image.cpp
?????文件?????????781??2009-08-08?20:02??ActiveWindow\image.h
?????文件?????????755??2010-01-06?19:44??ActiveWindow\main.cpp
?????文件????????7933??2010-01-06?19:44??ActiveWindow\matchParameters.cpp
?????文件????????1726??2009-10-12?21:33??ActiveWindow\matchParameters.h

評論

共有 條評論