objective c - Help with image processing in an iPhone app -


i'm working image processing tool in matlab. how can convert matlab code objective-c?

here of tasks want do:

  • i want rotate oblique line normal.

  • i have algorıthm converts colored image black & white. (how can access pixel color values in objective-c?)

  • in function getrgbfromimage, how can access output of pixel values consol?

  • how can run function (getrotatedımage) on each element of array?

quartz 2d (aka. core graphics) 2d drawing api in ios. quartz will, likely, you're looking for. recommend checking out quartz 2d programming guide in documentation. specific requests check out these sections:

  • colors , color spaces - color , b&w images
  • transforms - rotating or performing affine transform
  • bitmap images , image masks - information on underlying image data

as running function on each element of array, can use block iteration api (as long app can require ios 4.0 or higher). example:

[myarray enumerateobjectsusingblock:^(id item, nsuinteger index, bool *stop) {   dosomethingwith(item); }]; 

if want call method on each item in array, there also:

[myarray makeobjectsperformselector:@selector(dosomething)]; 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -