Extacting Greyscale Values from Sections of an Image

M
Posted By
Mike
Sep 13, 2003
Views
421
Replies
9
Status
Closed
Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines, through a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid area is considered having a value 0, black has value 10. Intermediate shades of grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.

So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.

I’m wondering if there exists a plugin that can provide this functionality. Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch of numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

JK
JP Kabala
Sep 13, 2003
not certain, but if anyone has something like this it
would probably be Reindeer Graphics…..their claim to fame is image analysis.

"Mike" wrote in message
Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines,
through
a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid
area
is considered having a value 0, black has value 10. Intermediate shades
of
grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.
I’m wondering if there exists a plugin that can provide this
functionality.
Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch
of
numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

EG
Eric Gill
Sep 13, 2003
"Mike" wrote in
news:8yu8b.57965$:

Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

I’m familiar with the concept. JPEG does something vaguely similar.

After drawing the grid, she goes through each square and determines, through a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square.

Downsample each square to one pixel. It may be possible to script it.

<snip>
BV
Bart van der Wolf
Sep 13, 2003
"Mike" wrote in message
SNIP
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.

1. Open the grayscale image
2. Filter|Pixelate|Mosaic… (size depends on image size)
3. Image|Adjustments|Posterize 10
4. Apply the grid if needed.

This can be recorded in an action (read the help file).

Alternatively:
2a. Resize the image down to the number of pixels equal to the number of tiles needed.
2b. Resize up (Nearest neighbor) to create room for grid

Bart
B
ben-dover
Sep 14, 2003
open the info window and use the eye dropper tool switch the info window to cmyk and as you move the dropper tool around on the picture it will tell you the amount of gray on a scale of 1-100
if you are going to a printing press the lightest shade on the picture has to be at least 10% grey you can use the curves adjustment to set the white scale to 10% and youll also want the blackest point at 90%. . "Mike" wrote in message
Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines,
through
a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid
area
is considered having a value 0, black has value 10. Intermediate shades
of
grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.
I’m wondering if there exists a plugin that can provide this
functionality.
Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch
of
numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

MK
Mike Koewler
Sep 14, 2003
ben-dover wrote:

if you are going to a printing press the lightest shade on the picture has to be at least 10% grey you can use the curves adjustment to set the white scale to 10% and youll also want the blackest point at 90%. .

Why? I get fine reproduction of black at 92-93 percent, going to newsprint witha 30 percent dot gain. When I printed to coated stock, 95-96 percent of black was fine.

Mike

"Mike" wrote in message

Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines,

through

a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid

area

is considered having a value 0, black has value 10. Intermediate shades

of

grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.
I’m wondering if there exists a plugin that can provide this

functionality.

Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch

of

numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

U
Uni
Sep 14, 2003
ben-dover wrote:
open the info window and use the eye dropper tool switch the info window to cmyk and as you move the dropper tool around on the picture it will tell you the amount of gray on a scale of 1-100
if you are going to a printing press the lightest shade on the picture has to be at least 10% grey

Why is this? So they can outline it, if it has a lot of pure white?

Uni

you can use the curves adjustment to set the white
scale to 10% and youll also want the blackest point at 90%. . "Mike" wrote in message

Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines,

through

a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid

area

is considered having a value 0, black has value 10. Intermediate shades

of

grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.
I’m wondering if there exists a plugin that can provide this

functionality.

Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch

of

numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

PF
Paul Furman
Sep 16, 2003
Here’s a simple way: resize the image to where each grid is one pixel.

Mike wrote:

Hi,

A friend of mine is working on a project for a painting course and came to me in the hopes that the current phase of it could be automated in Photoshop. Basically, she has a greyscale picture over which she draws a black grid with each square about an inch on a side.

After drawing the grid, she goes through each square and determines, through a rough estimate, the "level" of greyscale contained in the underlying picture for that particular square. Basically, a completely white grid area is considered having a value 0, black has value 10. Intermediate shades of grey would fall in between these bounds. Check out
http://members.cox.net/~m_masi/example.jpg for an example of what I mean.
So the question is, can this process be automated in Photoshop? Creating the grid doesn’t seem to be a problem, it’s getting the program to process each individual square and produce an arbitrary greyscale value.
I’m wondering if there exists a plugin that can provide this functionality. Does the software have scripting capabilities that could allow me to accomplish this? Eventually, I’d like to have it so she could load any greyscale image, run a plugin/script/etc and get a text file with a bunch of numbers corresponding to the greyscale grid values. Maybe I’m asking for more than what this progam can offer, but I would appreciate any insights! Thanks in advance.

Mike

JP
Jean Pierre Daviau
Sep 16, 2003
See my post

Color to Grays
MR
Mike Russell
Sep 17, 2003
ben-dover wrote:
open the info window and use the eye dropper tool switch the info window to cmyk and as you move the dropper tool around on the picture it will tell you the amount of gray on a scale of 1-100 if you are going to a printing press the lightest shade on the picture has to be at least 10% grey

Uni wrote:
Why is this? So they can outline it, if it has a lot of pure white?

The actual value is 1 to 3 percent, and this applies to the lightest area in which you want to retain detail. Otherwise the press won’t "hold" the dot reliably, and you may end up with pure white where you wanted detail.

A similar limit applies to the darkest area that is to contain detail. —

Mike Russell
http://www.curvemeister.com
http://www.zocalo.net/~mgr
http://geigy.2y.net

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

Related Discussion Topics

Nice and short text about related topics in discussion sections