Photoshop: Provide image analysis for Microbiology

  • 6
  • Idea
  • Updated 4 weeks ago
  • Under Consideration
  • (Edited)
I would love to see a count of discreet selections in an image. My main motivation is biology research, where it is often vital to perform cell counts in an image.

It's incredibly easy to create a selection of luminescent cells on a plate via channels or the color range tool, and both methods account for variations in cell shape really well. But there's no way to see how many selections have been made. I really don't want to count to 30,000 by hand, even with the count tool!

Attached: A plate sample! :) Would be great to have an "Add count" option that let me set min and max size or luminosity and then drop the result into the measurements log.
Photo of James Monaco

James Monaco

  • 34 Posts
  • 10 Reply Likes
  • confident

Posted 8 years ago

  • 6
Photo of David Jensen

David Jensen

  • 131 Posts
  • 46 Reply Likes
Threshold the image. (or the selection in Quick Mask mode)
Scale it to 200% using nearest neighbor resampling
Load a channel as a selection.
Convert the selection to a work path using a tolerance of 0.5 pixels

Run this script: (paste the code into notepad/textEdit and save with a .jsx extension)

Photo of Foster Brereton

Foster Brereton, Programmer

  • 43 Posts
  • 14 Reply Likes
Wow David -- slick!
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 15225 Posts
  • 2188 Reply Likes
Indeed. Always awesome to see the scripting junkies swoop in with a great solution! Well done.
Photo of roman weiser

roman weiser

  • 61 Posts
  • 9 Reply Likes
David, this is fantastic!