Popular Post MJW Posted January 17, 2017 Popular Post Share Posted January 17, 2017 Average Object Color averages the colors of objects. It was somewhat inspired by the SOTW mosaic theme (even though I currently don't plan to use it for my entry). It's in the Object submenu. The plugin: Average Object Color.zip The UI is very simple: The (also simple) Help Menu describes it as follows. ------------------------------ Average Object Color recolors each object to its average color. (An object is a connected group of non-transparent pixels surrounded by transparent pixels.) The average is weighted by the opacity of the pixels. When there is a selection, only the selected pixels are included in the average. The control is: Use Gamma Adjustment: When enabled, the square root of the average of the squared color components is used. The gamma-adjusted version is generally lighter. ------------------------------ If a solid image is desired, the Edge Expander can be used to fill in the transparent regions after averaging. (Note: make sure the objects are separated by completely transparent pixels. The first time I posted the example below, the colors of the averaged version were wrong. Some of the hexagon cells were not treated as separate objects because they were bridged by nearly, but not completely, transparent pixels. I used Red ochre's Transparency>Alphathreshold to fix the problem.) Here is an example: Original image: Image with hexagonal transparent grid added. The grid was added by using MadJik's Hexagonal Grid to produce a black-and-white grid in another layer, copying it to the clipboard, and using BoltBait's Paste Alpha plugin to modify the alpha of the flower layer. Because the lines between the cells are quite thin, apparently the alpha didn't go to 0 between some of the cells, causing some groups of cells to be treated as single cells. I solved this by using Red ochre's Alphathreshold to make some almost-transparent pixels transparent. I also could have selected the lines of the hex grid with the Magic Wand, switched to the flower layer, then used Erase Selection. I usually prefer to use Paste Alpha because I think it produces nicer edges. Averaged version: 10 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.