简体   繁体   English

矩阵malloc图像处理

[英]Matrix malloc Image Processing

I 'm trying to develop an Image Processing application for the images stored at the photo library of the iPhone, but to tell the truth I am confused. 我正在尝试为存储在iPhone照片库中的图像开发图像处理应用程序,但说实话我很困惑。 I'm interested in getting the ARGB matrixes out of the image. 我对从图像中提取ARGB矩阵感兴趣。 then make some algorithm with these matrixes and then releasing them. 然后用这些矩阵做一些算法,然后释放它们。 What would you prefer for the aforementioned method? 您希望采用上述哪种方法? Developing the algorithm with 2-dimensional matrixes using "malloc" and then "free" or would you use 1-dimensional matrixes with both "malloc" and "free"? 使用“ malloc”然后使用“ free”开发具有二维矩阵的算法,还是同时使用“ malloc”和“ free”的一维矩阵? When I 'm not using malloc I face problems with the memory, probably it's not enough to store both the uiimage and all these matrixes at the same time at the memory. 当我不使用malloc时,我会遇到内存问题,可能不足以将uiimage和所有这些矩阵同时存储在内存中。 PS I'm working on 3MP images. PS我正在处理3MP图像。

Thanks in advance 提前致谢

我将使用malloc并通过访问器函数访问矩阵,访问器函数根据2-D坐标计算1-D索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM