Photoshop: Imaging/Pixel "Patterns search and replace" functionality for Photoshop.

  • 1
  • Idea
  • Updated 7 years ago
  • (Edited)
Hi!
Sorry if this idea seems weird or dumb.
I'm not very experienced user of any image editors, but i believe i've newer heard any of them has it..

Is it possible to add next functionality: 1)define array of pixels, 2)search it in image, 3)replace it with another array (or just make selection)?

Let say we have next 5x5 array for step 1 (w=white, a=any color wildcard)
wwwww
waaaw
waaaw
waaaw
wwwww

by searching it we will find all isolated "noise" on white background - isn't it great for despeckle, for example? It also can be useful for pattern replacement, photo with text and scanned texts itself. Whole symbols can be searched and replaced..

And beside "any color" wildcard would be nice have also possibility set
1)exact color
2)color range
3)Anything brighter (or darken) than..
4)?

Or may be it's already implemented somewhere?

Thanks, Oleg.
Photo of Oleg Noname

Oleg Noname

  • 3 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14049 Posts
  • 1735 Reply Likes
This might be possible with Extended and writing something for Matlab.
Photo of Oleg Noname

Oleg Noname

  • 3 Posts
  • 0 Reply Likes
Thanks for reply. "writing something for Matlab" sounds promising :)
For me will be easier to recollect some language and create standalone utility. :)
I believe technically there is nothing difficult in search, as picture anyway somewhere represented as array of pixels (at worst - in video card's buffer), so no heavy math needed - just regular arithmetic.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14049 Posts
  • 1735 Reply Likes
Here's some more info on that:

http://help.adobe.com/en_US/photoshop...

http://blogs.adobe.com/jnack/2007/06/...

You can also do a Google search on Photoshop Extended + Matlab for other reference.
Photo of Oleg Noname

Oleg Noname

  • 3 Posts
  • 0 Reply Likes
Thank you, Jeffrey for response, once i'll have PS and MathLab, i'll take a look :)
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14032 Posts
  • 1731 Reply Likes
Cool. Have fun!