Skip to main content
lauratn
Participant
April 2, 2020
Question

automized measurements of areas for a large number of pictures

  • April 2, 2020
  • 4 replies
  • 421 views

Hi guys!

I have to measure (polygonal) areas in 300+ pictures taken with a camera for my scientific paper. Do you know if Photoshop can do this automated? If so, how?  Otherwise I would have to measure each picture by itself and the time needed would be much greater.

All the pictures have a ruler next to the area that is to be detected, so the picture can be calibrated easily. 

Thank you in advance & stay safe! Laura

 

This topic has been closed for replies.

4 replies

lauratn
lauratnAuthor
Participant
April 3, 2020

Thank you for your prompt replies! So this is an example for a Hemangioma. It's a benign growth of blood vessels.

I need to measure the area of the red part in cm^2. All the pictures I have are similar to this one. 

c.pfaffenbichler
Community Expert
Community Expert
April 3, 2020

So the issue is not only measuring an area but defining a scale and then measuring the area? 

 

In that case I would suspect full automation to be near impossible in Photoshop. 

But semi-automation (one or two manual inputs per image) seems possible, though depending on the lighting and quality of the individual images it might take more. 

lauratn
lauratnAuthor
Participant
April 3, 2020

Yes, first define a scale then measuring. But it would already help if I set the scale for each picture and it would measure the area by itself somehow. Is it possible for photoshop to distiguish between hemangioma and skin (with the help of hue, luminance, saturation or anything  like that) ?

JJMack
Community Expert
Community Expert
April 2, 2020

What kind of measurement do you need to do?

JJMack
c.pfaffenbichler
Community Expert
Community Expert
April 2, 2020

Automation options naturally depend on the source material, so please just show at least one sample image so we can see what you are talking about. 

What is the defining property of the areas (hue, luminance, …)? 

JJMack
Community Expert
Community Expert
April 2, 2020

If the polynomial areas can be automatically selected  with a Photoshop selection tool you can get the bounds of the selections which will be the bounds of your polygonal areas.  If you need to position the tool to make the selections and you can not automate the positioning you could make it a process  that is somewhat automated  by setting color simpler points manually then  run the script. You can set up to 10 points at a time. If you can automate the selection of the polygon areas and their bounds is all you need to measure you can script the whole process and batch process  your files.  If you need to measure the sides lengths and angles you may be able to convert the selections to paths and process the paths. Figure  side lengths angles and polygon volume. However I do not know if how Photoshop converts selection to paths will meet you needs.  Photoshop also has a measure tool. However, I have never use it so I do not know how to use it or what it can measure or how you would scale it. It may just as way of scaling Photoshop rulers for all I know.  I eyeball things.....

JJMack