ios - Objective C unsharp mask filter Xcode -


what efficient way create unsharp mask filter in objective c targeting ios? best implement open source imagemagick or build scratch.

i think basic formula follows (please comment if have not gotten right).

  1. duplicate original
  2. blur duplicate (gaussian)
  3. blend original via "difference"
  4. use result mask original
  5. increase contrast in unmasked areas of original.

core image has ciunsharpmask filter built-in, although i'm not sure if it's available on ios yet. brad larson's gpuimage framework has unsharp mask filter.

both methods should fast , easier implement cross-compiling imagemagick or writing own.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -