Is it possible to get an average color of an image?
Moderator: Kathy_9
-
Alejandro
- Posts: 26
- Joined: Sun Dec 30, 2012 8:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5-2400 CPU 3.10 GHz
- ram: 4GB
- Video Card: NVIDIA GeForce 210
- sound_card: NVIDIA and Realteck High Definition Audio
- Hard_Drive_Capacity: 2.000 GB
- Monitor/Display Make & Model: Samsung SyncMaster P2370MS
- Corel programs: PaintShop - Aftershot - others
- Location: Buenos Aires - Argentina
- Contact:
Is it possible to get an average color of an image?
Not that I need it much, but I would like to know if there is a way or a workaround with PaintShop so as to get an average color of an area one would have selected from an image (or from the image itself). This is, one color being the average of the colors from an image.
I mean something that would deliver a result similar to what can be get with some other programs through “blur” > “Avarage colour ” or “blur” > “average” (depending on which program we might be talking about, different from PaintShop) and that is different than what PaintShop does through its “Adjust” > “Blur” > “Average” command / tool.
I mean something that would deliver a result similar to what can be get with some other programs through “blur” > “Avarage colour ” or “blur” > “average” (depending on which program we might be talking about, different from PaintShop) and that is different than what PaintShop does through its “Adjust” > “Blur” > “Average” command / tool.
Last edited by Alejandro on Thu Jul 24, 2014 4:20 pm, edited 2 times in total.
-
Joelle
- Posts: 1815
- Joined: Wed Apr 02, 2008 10:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Asus Prime B350M-A
- processor: AMD Ryzen 5 1500 Quad-Core
- ram: 16 GB RAM
- Video Card: NVidia GeForce GTX 1050
- Hard_Drive_Capacity: 1TB
- Monitor/Display Make & Model: Samsung
- Corel programs: PaintShop Pro X9
- Location: UK
Re: Is it possible to get an average color of an image?
I am not sure I understand what you are after.
Have you investigated the tools under Adjust?
Palette or Count Image Colors might be useful perhaps?.

Joëlle
Have you investigated the tools under Adjust?
Palette or Count Image Colors might be useful perhaps?.
Joëlle
Joëlle
(PSPX9 )
(PSPX9 )
-
LindaSue
- Posts: 515
- Joined: Tue May 24, 2011 1:40 pm
- System_Drive: C
- 32bit or 64bit: 32 Bit
- motherboard: Gigabyte
- processor: 2.71GHz AMD Athlon II X2 215 processor
- ram: 3 GB
- Video Card: ATI Radeon HD 4350
- sound_card: Realtek AC97 Audio [onboard]
- Hard_Drive_Capacity: 1320 GB
- Monitor/Display Make & Model: Asus MX279 HDMI 27-inch
- Corel programs: Paint Shop Pro X2, X4, X6
Re: Is it possible to get an average color of an image?
How large is the area you want to sample? The eyedropper tool can give you the average of an area up to 11x11 pixels. I use this feature all the time to choose text colors to match the pictures on my greeting cards.
Using Paint Shop Pro versions 5, 6, 7, 8, 9, 12, 14, 16
-
Alejandro
- Posts: 26
- Joined: Sun Dec 30, 2012 8:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5-2400 CPU 3.10 GHz
- ram: 4GB
- Video Card: NVIDIA GeForce 210
- sound_card: NVIDIA and Realteck High Definition Audio
- Hard_Drive_Capacity: 2.000 GB
- Monitor/Display Make & Model: Samsung SyncMaster P2370MS
- Corel programs: PaintShop - Aftershot - others
- Location: Buenos Aires - Argentina
- Contact:
Re: Is it possible to get an average color of an image?
Count image colors just counts. I was meaning an action, tool or whatever is called, that would deliver a layer filled with a color that would be an average of all the colors present. Something as can be done through “blur” > “Average colour” in PhotoPlus or “Filter” > “blur” >”Average” in PhotoShop (I was trying to avoid mentioning any other programs different from PaintShop).Joelle wrote:I am not sure I understand what you are after.
Have you investigated the tools under Adjust?
Palette or Count Image Colors might be useful perhaps?.
Joëlle
The area could be the whole image or as big as a selection within the image of whatever pixels per pixels size it would involve.LindaSue wrote:How large is the area you want to sample? The eyedropper tool can give you the average of an area up to 11x11 pixels. I use this feature all the time to choose text colors to match the pictures on my greeting cards.
As I said, nothing I would need much. The thing is that I am now reading a book written by Scott Kelby where he uses this action / tool as part of a procedure which he explains and with which he kind of makes the colors (that help giving the atmosphere) of one image (though it could be the ones from part of an image), to somehow match the color tone of the selected area of a different one to be used to superpose over the first one, for a composite. He explains how this can be done with PhotoShop (as most do), but whenever I read this kind of procedures being explained for PhotoShop, I try to extrapolate everything to PaintShop (I try to find how to get the same or an equivalent result with PaintShop) , which I most usually succeed on doing.
-
Joelle
- Posts: 1815
- Joined: Wed Apr 02, 2008 10:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Asus Prime B350M-A
- processor: AMD Ryzen 5 1500 Quad-Core
- ram: 16 GB RAM
- Video Card: NVidia GeForce GTX 1050
- Hard_Drive_Capacity: 1TB
- Monitor/Display Make & Model: Samsung
- Corel programs: PaintShop Pro X9
- Location: UK
Re: Is it possible to get an average color of an image?
PSP can get close to a lot of things that can be achieved in the Mudhut product, but of course not everything.
Considering the huge price difference, it is to be expected that it won't match PS for everything.
As you said, it isn't something a user would use every day
Joëlle
Considering the huge price difference, it is to be expected that it won't match PS for everything.
As you said, it isn't something a user would use every day
Joëlle
Joëlle
(PSPX9 )
(PSPX9 )
-
photodrawken
- Posts: 684
- Joined: Wed Sep 26, 2012 8:40 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 16Gb
- Hard_Drive_Capacity: 324Gb
- Location: USA
Re: Is it possible to get an average color of an image?
No. PSP cannot do that.Alejandro wrote: I would like to know if there is a way or a workaround with PaintShop so as to get an average color of an area one would have selected from an image (or from the image itself).
That feature is very useful, and is another one of the reasons why I use PhotoLine as my primary image editing application.
In addition to the uses you mention, calculating the average colour of an image is the main step in an old Photoshop trick to remove colour casts from images:
1. Duplicate the image layer.
2. Apply a Blur...Calculate Average to the duplicated image layer.
3. Add a Curves adjustment layer above that averaged, duplicated image layer.
4. Use the Gray Point eyedropper in the Curves layer to set the averaged image to a medium gray.
5. Hide (or delete) that averaged, duplicated layer so the Curves adjustment layer now is applied to the original image layer.
That "trick" is so useful, in fact, that I've created an action in PhotoLine to quickly apply it to an image.
Ken
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK P7P55D STRIX B240F GAMING
- processor: IntelCore i7 7700 3.60 Ghz
- ram: 8 Gb
- Video Card: Nvidia GeForce GTX 1050
- sound_card: Nvidia High Definition Audio
- Hard_Drive_Capacity: 1000 Gb
- Monitor/Display Make & Model: AOC
- Corel programs: PSP8,X2 to X9,2018,2019,2020
- Location: Australia
Re: Is it possible to get an average color of an image?
I have used a procedure similar to what you are requesting.
I had pictures taken of a model against a strong coloured backdrop (purple) and on an earlier camera and used auto white balance. When I took full length pictures with lots of the backdrop (more than 50%) I had one color cast on the model and when I zoomed in (camera) so that the backdrop color was less than about 20 % I had a different color cast.
To try and match the colors I would make a selection of a section of the backdrop 200 + pixels square/ rectangle and then apply a strong gaussian blur to get an overall singular color. I would then use the eyedropper tool at its largest (11 x 11 pixels) setting to sample the even color and note down the settings.
I would then repeat this with the other image . Then I would use Adjust > Color > Red Green Blue (shift U was the shortcut from memory) to change the cast of the worst image to make it as close to the best image. eg if the bad image had more red and yellow than the good image, I would reduce the red and increase the blue by the same proportions. This made a close match, but never exact.
I had pictures taken of a model against a strong coloured backdrop (purple) and on an earlier camera and used auto white balance. When I took full length pictures with lots of the backdrop (more than 50%) I had one color cast on the model and when I zoomed in (camera) so that the backdrop color was less than about 20 % I had a different color cast.
To try and match the colors I would make a selection of a section of the backdrop 200 + pixels square/ rectangle and then apply a strong gaussian blur to get an overall singular color. I would then use the eyedropper tool at its largest (11 x 11 pixels) setting to sample the even color and note down the settings.
I would then repeat this with the other image . Then I would use Adjust > Color > Red Green Blue (shift U was the shortcut from memory) to change the cast of the worst image to make it as close to the best image. eg if the bad image had more red and yellow than the good image, I would reduce the red and increase the blue by the same proportions. This made a close match, but never exact.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
Forriner
- Posts: 449
- Joined: Mon Aug 13, 2012 9:35 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUS Z170M-PLUS
- processor: Intel Core i5-6400
- ram: 16 GB
- Hard_Drive_Capacity: 1250 GB
- Monitor/Display Make & Model: Philips Brilliance 272b 2560 × 1440
- Corel programs: PSP 2023
- Location: The Netherlands
Re: Is it possible to get an average color of an image?
I was wondering if the histogram can't help: for each channel (RGB) it gives mean and median values that you could use. You might need to select part of an image and paste as a new image.
Of course, I have no idea what you're doing so I could be way off base
Of course, I have no idea what you're doing so I could be way off base
-
Forriner
- Posts: 449
- Joined: Mon Aug 13, 2012 9:35 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUS Z170M-PLUS
- processor: Intel Core i5-6400
- ram: 16 GB
- Hard_Drive_Capacity: 1250 GB
- Monitor/Display Make & Model: Philips Brilliance 272b 2560 × 1440
- Corel programs: PSP 2023
- Location: The Netherlands
Re: Is it possible to get an average color of an image?
Delete: server thing.
Last edited by Forriner on Fri Jul 25, 2014 12:31 pm, edited 1 time in total.
-
Forriner
- Posts: 449
- Joined: Mon Aug 13, 2012 9:35 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUS Z170M-PLUS
- processor: Intel Core i5-6400
- ram: 16 GB
- Hard_Drive_Capacity: 1250 GB
- Monitor/Display Make & Model: Philips Brilliance 272b 2560 × 1440
- Corel programs: PSP 2023
- Location: The Netherlands
Re: Is it possible to get an average color of an image?
Delete: the server and hiccups.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Is it possible to get an average color of an image?
Oooh, good one. Thanks Forriner that's an excellent idea
As Forriner said, use the histogram palette. If you're working with multiple layers but only need the average for the current one, make sure "Use all layers" is turned off. Also for selections make sure "Selection Only" is turned on.
In the drop down box on the right you can select each channel (Red, Green, and Blue) individually. Then move your mouse over the histogram and it'll fill in the values. Or at least that's what I needed to do, it didn't fill them automatically the first time. Then just select each channel and read the mean.
Enter those values into the materials palette to get the color you need, then just make a new layer and fill it in with the bucket fill.
There are small rounding differences between Photoshop and PSP on the averages but for the most part the colors all came out the same in my tests.
As Forriner said, use the histogram palette. If you're working with multiple layers but only need the average for the current one, make sure "Use all layers" is turned off. Also for selections make sure "Selection Only" is turned on.
In the drop down box on the right you can select each channel (Red, Green, and Blue) individually. Then move your mouse over the histogram and it'll fill in the values. Or at least that's what I needed to do, it didn't fill them automatically the first time. Then just select each channel and read the mean.
Enter those values into the materials palette to get the color you need, then just make a new layer and fill it in with the bucket fill.
There are small rounding differences between Photoshop and PSP on the averages but for the most part the colors all came out the same in my tests.
https://levifiction.wordpress.com/
-
photodrawken
- Posts: 684
- Joined: Wed Sep 26, 2012 8:40 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 16Gb
- Hard_Drive_Capacity: 324Gb
- Location: USA
Re: Is it possible to get an average color of an image?
Yes, good catch! I stand corrected: In PSP, you can manually calculate the average values for the RGB channels individually and manually use those individual values to obtain an averaged colour layer.Forriner wrote:I was wondering if the histogram can't help: for each channel (RGB) it gives mean and median values that you could use.
Nowhere near being convenient, but do-able, for sure.
Ken
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done...
Just take everything out on Highway 61.
-
Alejandro
- Posts: 26
- Joined: Sun Dec 30, 2012 8:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5-2400 CPU 3.10 GHz
- ram: 4GB
- Video Card: NVIDIA GeForce 210
- sound_card: NVIDIA and Realteck High Definition Audio
- Hard_Drive_Capacity: 2.000 GB
- Monitor/Display Make & Model: Samsung SyncMaster P2370MS
- Corel programs: PaintShop - Aftershot - others
- Location: Buenos Aires - Argentina
- Contact:
Re: Is it possible to get an average color of an image?
Yes!!!!!, it worked. Thank you all for your inputs and special thanks to you, Forriner and LeviFiction. There was a workaround after all and it is quite simple to implement.
This is something I will not be doing much, so I don`t mind not having a direct automatized way of doing it. It can be done easily enough in PaintShop.
This is something I will not be doing much, so I don`t mind not having a direct automatized way of doing it. It can be done easily enough in PaintShop.
