How can I get the C language code of the following script?
1 次查看(过去 30 天)
显示 更早的评论
A=imread('E:\Masud Kaiser\Thesis\3750400-1.jpg');
B = rgb2gray( A );
figure
surfc(B,'edgecolor','none')
grid on
rotate3d on
figure
surfc(B,'edgecolor','none')
view (0,90)
figure
surfc(B,'edgecolor','none')
view (-90,0)
figure
surfc(B,'edgecolor','none')
view (0,0)
figure
grid on
imcontour(B,3)
rotate3d on
colormap
hold
0 个评论
采纳的回答
Walter Roberson
2018-12-10
With difficulty. There is no code generation support for most of those graphics routines.
2 个评论
Walter Roberson
2018-12-13
Neither C nor C++ have any built in graphics . There are a number of competing graphics standards with DirectX and Opengl being perhaps the two best known (but Apple has switched to its Metal framework for higher performance.) Then there is the code for programming GPUs with Cuda programming not being compatible with OpenCL....
Thus when you ask for C code for graphics you need to ask yourself which graphics package is being targeted...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!