Mobile app version of vmapp.org
Login or Join
Nickens508

: How can you find the percent of the total image that one object uses? Given that I have an irregular object image (flower) and I am only allowed to use 30 percent of the image/page with

@Nickens508

Posted in: #AdobePhotoshop #Images

Given that I have an irregular object image (flower) and I am only allowed to use 30 percent of the image/page with said object is there a way to tell this in photoshop or any other program? I just need to make sure the flower pixels add up to 30 percent of the total pixels on the page.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Nickens508

2 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley460

It depends whether you can separate the background from the foreground (which is your flower) with some thresholding filter or by automatic or manual selection.

When you can use the magic wand tool or another selection method to surround your flower, getting the pixel count is very easy. Take for instance this flower





With the magic wand, I can easily select the white background with a simple click





The rest is easy. Open the Histogram, click on the small context menu in the upper right corner of the histogram window and open the detailed view. This shows the number of pixels in the current selection which is about 80700. When you remove the selection you see in the very same spot the pixel count of the complete image which is 120000. Therefore, the background takes 80700/120000 = 0.67 = 67% of the image.

10% popularity Vote Up Vote Down


 

@Carla748

Divide the amount of pixels in the flower by the amount of pixels on the page then x 100
(to get the total amount of pixels of each multiply the width and the height.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme