RetouchPRO

Go Back   RetouchPRO > Technique > Forensic and Technical Imaging
Register Blogs FAQ Members List Site Nav Search Today's Posts Mark Forums Read Chat Room


Forensic and Technical Imaging Legal, medical, scientific, and forensic imaging techniques.

Reply
 
LinkBack Thread Tools
  #1  
Old 06-09-2009, 09:14 PM
Junior Member
 
Join Date: Jun 2009
Posts: 2
pattern recognition in Photoshop?

Hello All,

I have a challenge facing me and would like to pose a question to this board. (If I've posted it to the wrong board, please excuse me)

To what extent can I use scripting with Photoshop to perform automated pattern recognition?

Here's my Issue: As part of a manufacturing process, I need to measure two distinct, but concentric, roughly circular areas from an image of the cross section of a circular wire.

Area1: Inner core; identified as a solid Grey filled circle. Small diameter
Area2: Interior; composed of the inner core and other "stuff" (usually many small dark Gray colored hexagonal shapes surrounded by gold). Larger diameter

Both of these areas are concentric and surrounded by a thin outer gold layer.

I need to calculate the percent area of the inner core which equals (Area1/Area2)*100

I am looking for a script (or guidance on how to approach creating one) that would automatically find the edges of the inner core area and the Interior Area and output these values to a file. I need it to be done in as little user input as possible. (Ex: One click to select Area1, One-Two clicks to adjust accuracy of the selection, One click to select Area2, One-Two clicks to adjust accuracy of the selection, one click to save)

Dificulties:
1) The edges of the circles are not always well defined. Grey color bleeds through to the gold outer barrier due to lighting inconsistencies. (But the edge is intact to about 90% of the circumference ususally)
2) Finding the edges needs to be fairly accurate. At least as accurate as visually tracing them with a pen input device. Therefore Smoothing the selection after using magic wand often looses accuracy (due to #1)

I can get the edges sharp with levels, contrast, etc... Using Magic wand is close, but if the tolerance is too small I get better edges, but It grabs too much in the center of the circle. If the tolerance is too large, I loose the edge accuracy. Oh, and I know (roughly) the diameter of each circle before hand (so I guess I can automate trimming the image to my target areas)

Any suggestions? Do I have to look into specialized pattern recognition software? I hope someone will be able to help me approach this challenge.

Thank you in advance.

Sincerely,

Sean
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 11-08-2009, 08:51 PM
csuebele's Avatar
Member
 
Join Date: Oct 2009
Location: Los Angles area
Posts: 48
Re: pattern recognition in Photoshop?

I don't know about using scripting for what you want to do. I think there is a little too much fuzzy logic needed to be able to script this. It would be a huge pain scripting, if it would even work. Have you tried posting this question on ps-scripts.com? There are some really good scripters there that could better answer this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 11-08-2009, 10:45 PM
Doug Nelson's Avatar
Janitor
 
Join Date: Aug 2001
Posts: 4,838
Blog Entries: 20
Re: pattern recognition in Photoshop?

I suspect this is possible using Matlab (not out of the box, though)
http://www.mathworks.com/access/help...gionprops.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 11-08-2009, 11:26 PM
Junior Member
 
Join Date: Jun 2009
Posts: 27
Re: pattern recognition in Photoshop?

This is probably a better solution for a plug-in. If you could figure out how to do it with scripting then it would probably be relatively slow, possibly to the point of being unusable. I would imagine that you would want a full blown plug-in written in C due to the amount of data that you would need to handle to process the file, which would probably need to be done pixel by pixel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photoshop and the RAW format Shaky Photo Retouching 1 03-30-2009 12:16 PM
CS3 Action Transfer To Photoshop CS4 gho64 Photo Retouching 3 02-02-2009 10:24 PM
Camera Raw in Photoshop chanamagoo Photoshop Help 2 01-12-2009 09:19 PM
Computer: Why your next Photoshop computer should be a Mac Doug Nelson Hardware 15 08-27-2008 07:47 AM
How do you learn to do "Photo-art"? DannyRaphael Photo-Art 101 18 09-23-2006 11:41 PM


All times are GMT -6. The time now is 09:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2008 Doug Nelson. All Rights Reserved