问题描述
我想对在iPhone上拍摄的照片进行图像处理.此处理将涉及2D矩阵卷积等.
I would like to apply image processing on pictures taken on the iPhone.This processing would involve 2D matrix convolutions etc.
恐怕嵌套NSArrays
的性能会很差.操纵基于像素的图像的正确方法是什么?我应该只使用分配了malloc
的C数组吗?
I'm afraid that the performance with nested NSArrays
would be pretty bad. What is the right way to manipulate pixel based images? Should I simply use C arrays allocated with malloc
?
推荐答案
您是否看过 Quartz 2D 引擎可以在iPhone SDK中使用吗?还是核心图形?苹果有一个很好的概述文档描述了所有可用的成像技术在iPhone上.不幸的是,还没有iPhone上的ImageKit这么好.
Have you looked at the Quartz 2D engine available in the iPhone SDK? Or perhaps Core Graphics? Apple has a nice overview document describing all the different imaging technologies available on the iPhone. Unfortunately there isn't anything as nice as ImageKit on the iPhone yet.
这篇关于iPhone上的图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!