YOUR ACCOUNT

Login or Register to post new topics or replies
ddaydreams
Frank Hawkins
Posts: 412
Filters: 1
Is there a FF filter or snipit utility for determining the percentage of black in a black and white image document?
Here's a picture of what I'm after. I just made up the 35% figure. But that's a good example of the simple looking percentage readout outcome I would like.

  Details E-Mail
ddaydreams
Frank Hawkins
Posts: 412
Filters: 1
You can't see how much of doc is white because it's on white background on this forum. But I trust you get my meaning
  Details E-Mail
Sphinxmorpher
Filter Optimizer

Posts: 1750
Filters: 39
For a simple determination of intensiry you can look at the inverse average color. Here the result is 0.33 (or 33%). If you need it to react only to pure black, you need to preprocess with threshold and use a blur at max. radius

  Details E-Mail
ddaydreams
Frank Hawkins
Posts: 412
Filters: 1
So I'm trying to determine how much of the space as a percentage of a pure white document is used by the pure black circle I added. I was not concerned about the intensity. Are you saying the intensity has something to do with figuring that out?
  Details E-Mail
Sphinxmorpher
Filter Optimizer

Posts: 1750
Filters: 39
Maybe I misunderstand - do you actually want to render that red text saying "35% Black", or do you want to get the numeric value 0.35 inside the filter for use in another context?

The the black disc is 24.6% of the image, not 35% smile;-)

  Details E-Mail
ddaydreams
Frank Hawkins
Posts: 412
Filters: 1
Thanks, Sphinxmorpher

Inside or outside the filter is fine I just needed visual access to the figure without having to do the math formula of determining the surface area of the black and deducting that from the surface area of the whole doc to get the percentage of black surface area involved in the document.

Such a math formula could get pretty tricky on(let's say)a black and white reaction-diffusion image.

So this will work for me I think what you've done here yielding the 24.6% equivalent figure provides me with a way to have the number I'm after on any image.

The purpose of the number is to tell me when a complex black and white pattern has a surface area that is 50 percent black and therefore 50 percent white (aka balanced)
rather than just eyeballing it.
Thanks Much
  Details E-Mail
Sphinxmorpher
Filter Optimizer

Posts: 1750
Filters: 39
Yeah, the trick is really to disregard the complexities of shapes and patterns completely and simply look at the total average. If it is greater than 50% (gray) you have more white image etc.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,531 Posts
+36 new in 30 days!

15,347 Topics
+72 new in year!

Create an Account

Online Users Last minute:

14 unregistered users.