I would like to apply image processing to pictures taken on the iPhone. This processing will include two-dimensional matrix convolutions, etc.
I am afraid that performance with nested NSArrayswill be good. How can I manipulate pixel-based images? Should I just use the C arrays allocated with malloc?
NSArrays
malloc
Have you seen the Quartz 2D engine available in the iPhone SDK? Or maybe Core Graphics? Apple has a nice overview document that describes all the image processing technologies available on the iPhone. Unfortunately, there is nothing nice on the iPhone like ImageKit.
OpenCV, , . OpenCV , NSArray. : OpenCV C/++, NSImage OpenCV . Google, . OpenCV iPhone, OpenCv IPhone: http://computer-vision-talks.com/2010/12/building-opencv-for-ios/
, C , .
As already mentioned, you should look and see if you can use Quartz2D to perform the manipulations that interest you, since they will probably work better on a hardware basis. If not, just make your own with an array of pixels.
The iPhone also supports OpenCL, and its GPU has more processing power than a processor.
Source: https://habr.com/ru/post/1729626/More articles:ะัััะฐะธะฒะฐัั ะบะพะฝััััะบัะพั ะธะปะธ ะฝะตั ั TDD? - c#A simple open outlet hangs very rarely - javaResizing a text field in C # - c #Does the external file package in Flash come? - flashenableEventValidation and validateRequest difference - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1729627/microsoft-excel-how-to-copy-cells-to-a-different-worksheet-on-every-nth-row&usg=ALkJrhgZJ3Z0fzSN9nAvDmvg60PALb_fywCorrect setup for IIS7.5 computer account for anonymous access to website - asp.netRails - select the current menu item - ruby-on-railsTargetInvocationException when updating an image in WPF - c #Find out if an item exists in the Microsoft.Office.Interop.Word.Styles collection. - c #All Articles