1 Star 0 Fork 16

Job/NumCpp

forked from Gitee 极速下载/NumCpp 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
example06.cpp 725 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tobias Knopp 提交于 2013-08-04 01:18 +08:00 . rewrite of numcpp
#include <numcpp.h>
#include <numcpp/tomography.h>
using namespace numcpp;
int main()
{
size_t N = 256;
auto x = phantom(N);
Array<double> xi = linspace(-sqrt(2)/2, sqrt(2)/2, N);
Array<double> gamma = linspace(0, 2*pi, N);
auto R = radon(x, xi, gamma);
export_image(R, "Radon.png");
auto B = fbp(R, gamma, 256);
export_image(B, "Reco.png");
}
/*!
@page example06 Radon Transformation Example
@code
int main()
{
size_t N = 256;
auto x = phantom(N);
Array<double> xi = linspace(-sqrt(2)/2, sqrt(2)/2, N);
Array<double> gamma = linspace(0, 2*pi, N);
auto R = radon(x, xi, gamma);
export_image(R, "Radon.png");
auto B = fbp(R, gamma, 256);
export_image(B, "Reco.png");
}
@endcode
*/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/flyboy82/numcpp.git
git@gitee.com:flyboy82/numcpp.git
flyboy82
numcpp
NumCpp
master

搜索帮助