简体   繁体   中英

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. I'm interested in getting the ARGB matrixes out of the image. 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"? 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. PS I'm working on 3MP images.

Thanks in advance

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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