[英]how could find code of Matlab mex file?
我想將Matlab的Imrotate函數轉換為c ++。 Matlab在Imrotate中使用了一個mex文件(Imrotatemex)。 如何找到Matlab mex文件的代碼?
您可以通過鍵入using查看使用MATLAB的功能
edit imrotate
此外,文檔中還說:
% Performance Note
% ----------------
% This function may take advantage of hardware optimization for datatypes
% uint8, uint16, and single to run faster.
在這種情況下,Matlab調用imrotatemex,即已編譯為從Matlab調用的C代碼,通常速度更快。
在我回顧了前兩個答案之后。 命令
which imrotatemex -all
給我結果:
/Applications/MATLAB_R2015a.app/toolbox/images/images/private/imrotatemex.mexmaci64%圖片私有
如您所見,它在一個私有文件中
請參閱此答案中的方法,我們有兩種方法可以訪問它: https : //discussions.apple.com/thread/7583520?start=0&tstart=0
1.使用取景器中的``開始''功能
使用路徑/Applications/MATLAB_R2015a.app/toolbox/images/images/private/
2.使用終端並輸入命令:
默認寫com.apple.Finder AppleShowAllFiles是
我搜索了一些結果后,mexmaci64是由matlab中的ac文件編譯的文件,因此我們無法直接對其進行編輯。
從另一方面來看,OpenCV可能具有一些基於C的實現。
問候,林
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.