xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 352KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2024-02-03
  • 語言: 其他
  • 標(biāo)簽: image??

資源簡介

雙立方插值實(shí)現(xiàn),里面還有一個(gè)說明文檔,大家可以拿去參考

資源截圖

代碼片段和文件信息

//?Bicubic?interpolation.cpp?:?定義控制臺(tái)應(yīng)用程序的入口點(diǎn)。
//

#include?“stdafx.h“
#include?
#include?

double?cubicInterpolate(double?p[4]?double?x)
{
return?p[1]?+?0.5?*?x*(p[2]?-?p[0]?+?x*(2.0*p[0]?-?5.0*p[1]?+?4.0*p[2]?-?p[3]?+?x*(3.0*(p[1]?-?p[2])?+?p[3]?-?p[0])));
}

double?bicubicInterpolate(double?p[4][4]?double?x?double?y)
{
double?arr[4];
arr[0]?=?cubicInterpolate(p[0]?y);
arr[1]?=?cubicInterpolate(p[1]?y);
arr[2]?=?cubicInterpolate(p[2]?y);
arr[3]?=?cubicInterpolate(p[3]?y);
return?cubicInterpolate(arr?x);
}

double?tricubicInterpolate(double?p[4][4][4]?double?x?double?y?double?z)
{
double?arr[4];
arr[0]?=?bicubicInterpolate(p[0]?y?z);
arr[1]?=?bicubicInterpolate(p[1]?y?z);
arr[2]?=?bicubicInterpolate(p[2]?y?z);
arr[3]?=?bicubicInterpolate(p[3]?y?z);
return?cubicInterpolate(arr?x);
}

double?nCubicInterpolate(int?n?double*?p?double?coordinates[])
{
assert(n?>?0);
if?(n?==?1)
{
return?cubicInterpolate(p?*coordinates);
}
else
{
double?arr[4];
int?skip?=?1?< arr[0]?=?nCubicInterpolate(n?-?1?p?coordinates?+?1);
arr[1]?=?nCubicInterpolate(n?-?1?p?+?skip?coordinates?+?1);
arr[2]?=?nCubicInterpolate(n?-?1?p?+?2?*?skip?coordinates?+?1);
arr[3]?=?nCubicInterpolate(n?-?1?p?+?3?*?skip?coordinates?+?1);
return?cubicInterpolate(arr?*coordinates);
}
}

int?main()
{
//?Create?array
double?p[4][4]?=?{?{?1334?}{?7234?}{?1636?}{?2572?}?};

//?Interpolate
std::cout?<
//?Or?use?the?nCubicInterpolate?function
double?co[2]?=?{?0.1?0.2?};
std::cout?<
system(“pause“);
return?0;
}


?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????1780??2017-06-08?14:09??雙立方插值實(shí)現(xiàn)\Bicubic?interpolation.cpp

?????文件?????372474??2017-06-09?14:03??雙立方插值實(shí)現(xiàn)\Bicubic?interpolation學(xué)習(xí)總結(jié).pdf

?????目錄??????????0??2018-07-11?09:49??雙立方插值實(shí)現(xiàn)

-----------?---------??----------?-----??----

???????????????374254????????????????????3


評(píng)論

共有 條評(píng)論