Count the colors in photoshop?

Hello


I am have created a grid in photoshop consisting of about 60 colors and I need an accurate value for the number of squares that are assigned to each color. The reason for this? I do a carpet and need to calculate how much wool I need to complete it! However, the histogram-> route number of pixels does not work for me (Oh how I tried!) that I've used a mosaic filter on the image. Therefore, the places I'm highlighted with the magic wand tool do not count for a pixel of each... does make sense? and if it isn't... is there a way around this without going me nutty and having to count the entire image of the eye!


Please save my sanity!


Thank you

Well, the number of pixels histogram should work. Assuming you regular shaped areas. I took a photo and a mosaic of 45 pixels, put on it. Then when I select a square 45 x 45 = 2025 pixel and when there were two squares of the same color of the histogram shown 4050 pixel.

If you need to just their total of and divide by anything that has a unique place.

Just a bit of mathematics...

Tags: Photoshop

Similar Questions

  • Count the colorful fields of a 2D array

    HI, is there a way to know hoy many fields of a 2D array are colorful?

    I want to count your painted the fields in this table

    concerning

    You will need to check each cell and see which ones have the color you're looking for. A bit like this:

    Interesting that it has replaced the reference to a reference control. Data table 2 should be a reference to the data Table.

    Rob

  • How can I decrease the contrast of the colors in Photoshop?

    I have two similar photos I want to look the same Color. In one, the color is more monochromatic. In the other, there is more contrast between the colors more and more green/plus. I tried to reduce the saturation, but it makes the photo more gray overall, not what I want. Can anyone recommend a tool or tools that I can use to fix this?

    [Ask in the correct forum allows... Left generic Cloud/Setup forum for forum specific program... MOD]

    Hello

    Have you tried to use the tool "curves"?

    Using Photoshop | Curves adjustment

    Stone

  • How can I match the colors of Photoshop with web elements? Nothing works for me.

    Hello.

    the first thing I want to say is I know there are many other discussions and topics on this subject - I read them all, but nothing seems to work for me and I'm really confused and frustrated.

    My site has already made in CSS colors, but on some songs, I want to place images, corresponding Color at bottom of the site. It seems impossible.

    I tried almost all color profiles, sRGB, disabling the color, through "save for web", record management off the display in "proof colors" option, by checking and not unchecking each box, still no joy.

    Is the closest I have got in this way:

    • I put Monitor RGB in the color settings,
    • create a new document with no color management
    • fill the background with the color, what code I copy CSS,
    • Save in the dialog box Save for web without conversion to sRGB and embeded in JPG format color profiles (or PNG, cannot see any difference here) (Nothing checked under options for JPG) file

    Then I watch by edge Chrome, Firefox, and even if it is narrow, it just doesn't fit!

    When I do a screenshot of my site, paste in photoshop and choose colors with the color picker, the photoshop color watch codes are the same those of CSS, correct! But when I save... BAM, everything changes.

    How is that possible? And why these problems exist?

    Because, oddly enough, I managed to match all the colors perfectly in browsers with Microsoft paint on the first try! Without messing around with tons of color profiles, settings, color calibration and other sorts of black witchcraft that I don't understand.

    At this point, I do not see how potentially usable for webdesign Photoshop.

    I'll provide more information as soon as possible, if necessary.

    Photoshop manages color. Unfortunately, this leads to choices that must be made to the right, while the painting was simply a color unmatched brain dead.

    1. try to use sRGB as your workspace. Do not leave any conversion.

    2. save in PNG to test that the colors may change to JPEG.

    3 test cycle.

    4. If they don't always match, reopen the PNG and check its color. Unchanged?

  • How to calculate the color in Photoshop?

    I have a black and white photo on the attachment. I need to calculate that the way pixles manay are black and how are white. Can someone describe a method to me so that I can do with my picture?pattern2.jpg

    Threashold and Posterization are adjustments that access you static settings (from the Image-> adjustments) or as (from the window-> adjustment) adjustment layers. It's up to you if you want to use them or not before counting the pixels as this image of yours is filled with plenty of gray pixels

  • Question of color in Photoshop CC 2015 selector

    When you select a color in the color with Photoshop CC 2015 selector window it keeps displaying a pop-up message "Could not complete your request because of a program error".

    Is there a solution to this problem?

    grab.jpg

    I just found a way to solve the problem:

    Go to: Preferences > General > Reset preferences on Quit

    Then, quit Photoshop and re-open.

  • Same pdf shows different colors in photoshop

    Hello

    I m new to Acrobat, I work with Mac support. I have a client that complaints that colors ar non-identiques in Acrobat, compared to when it opens the same pdf file in Photoshop or Illustrator. All applications are the latest versions of CC and running on a Mac Pro with Yosemite 10.10.2.

    The color in Photoshop settings saved and imported into Illustrator. It seems the same. But not in Acrobat. Is there a way to import Photoshop color settings in Acrobat? Or what can be the reason?

    Many thanks in advance, don't forget that the I m a newbie...

    Hi Thomas,

    I would ask you to visit the following links and see if that helps.

    http://help.Adobe.com/en_US/creativesuite/CS/using/WS6A727430-9717-42DF-B578-C0AC705C54F0. HTML

    http://help.Adobe.com/en_US/creativesuite/CS/using/WS37C6D4EA-9407-4954-9A03-92735E070188. HTML

    Let us know how it goes.

    Concerning

    Sukrit diallo

  • How determine the color of any image sent me

    Hi all

    I was sent a gif image to work on and the color of the image (RGB) allows to apply themes on the site.

    But I don't know the code RGB from the color used in the creation of the image. How can I find the color in Photoshop CS4?

    Thank you

    Use the eyedropper tool, it will set the foreground color that you can use.

  • change the colors in the vector shapes - photoshop script

    I have a problem with the code which changes the colorsand vector shapes. It only works on a single layer, and if you select more than one layer, it pops up error. Is - that someone knows how to solve this problem?

    #target photoshop
    cTID
    = function(s) { return app.charIDToTypeID(s); };
    sTID
    = function(s) { return app.stringIDToTypeID(s); };

    function Action3() {

     
    function step1(enabled, withDialog) {
      
    if (enabled != undefined && !enabled)
      
    return;
      
    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
      
    var desc1 = new ActionDescriptor();
      
    var ref1 = new ActionReference();
      ref1
    .putEnumerated(sTID("contentLayer"), cTID('Ordn'), cTID('Trgt'));
      desc1
    .putReference(cTID('null'), ref1);
      
    var desc2 = new ActionDescriptor();
      
    var desc3 = new ActionDescriptor();
      
    var desc4 = new ActionDescriptor();
      desc4
    .putDouble(cTID('Rd '), 243);
      desc4
    .putDouble(cTID('Grn '), 110);
      desc4
    .putDouble(cTID('Bl '), 93);
      desc3
    .putObject(cTID('Clr '), sTID("RGBColor"), desc4);
      desc2
    .putObject(cTID('FlCn'), sTID("solidColorLayer"), desc3);
      
    var desc5 = new ActionDescriptor();
      desc5
    .putInteger(sTID("strokeStyleVersion"), 2);
      desc5
    .putBoolean(sTID("fillEnabled"), true);
      desc2
    .putObject(sTID("strokeStyle"), sTID("strokeStyle"), desc5);
      desc1
    .putObject(cTID('T '), sTID("shapeStyle"), desc2);
      executeAction
    (cTID('setd'), desc1, dialogMode);

     
    };

    step1();};

    Action3.main = function () {

    Action3();};Action3.main();

    2016, use it at your own risk.

    #target photoshop

    If (app.documents.length > 0) {}

    myDocument var = app.activeDocument;

    var theLayers = getSelectedLayersIdentifier();

    for (var m = 0; m< thelayers.length;="" m++)="">

    changeSolidColor (theLayers [m], 128, 0, 255);

    }

    };

    //////////////////////////////////////////

    based on the code of paul m..

    function getSelectedSoidColorLayersIdentifier() {}

    var selectedLayers = new Array;

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Dcmn"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var / / desc = executeActionGet (ref);

    If (desc.hasKey (stringIDToTypeID ("targetLayers"))) {}

    DESC = desc.getList (stringIDToTypeID ('targetLayers'));

    var c = desc.count;

    var selectedLayers = new Array();

    Browse layers selected;

    for (var i = 0; i)<>

    try {activeDocument.backgroundLayer;

    var theIndex = desc.getReference (i). getIndex();

    } catch (e) {var theIndex = desc.getReference (i) .getIndex () + 1};

    get id for layers of solid color;

    try {}

    Var ref = new ActionReference();

    ref.putIndex (charIDToTypeID ("Lyr"), theIndex);

    var layerDesc = executeActionGet (ref);

    var theIdentifier = layerDesc.getInteger (stringIDToTypeID ("layerID"));

    var adjList = layerDesc.getList (stringIDToTypeID ('adjustment'));

    var theColors = adjList.getObjectValue (0) .getObjectValue (stringIDToTypeID ('color'));

    selectedLayers.push (theIdentifier);

    } catch (e) {};

    };

    If a single:

    } else {}

    Var ref = new ActionReference();

    ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var layerDesc = executeActionGet (ref);

    try {}

    var theIdentifier = layerDesc.getInteger (stringIDToTypeID ("layerID"));

    var adjList = layerDesc.getList (stringIDToTypeID ('adjustment'));

    var theColors = adjList.getObjectValue (0) .getObjectValue (stringIDToTypeID ('color'));

    selectedLayers = [theIdentifier]

    } catch (e) {};

    };

    Return selectedLayers;

    };

    change the color of solid color layer.

    function changeSolidColor (theIdentifier, theR, g target) {}

    // =======================================================

    var idsetd = charIDToTypeID ("setd");

    var desc4 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    var ref1 = new ActionReference();

    Ref1.putIdentifier (stringIDToTypeID ('contentLayer'), theIdentifier);

    Desc4.putReference (idnull, ref1);

    idT var = charIDToTypeID ("T");

    var desc5 = new ActionDescriptor();

    var idClr = charIDToTypeID ("Clr");

    var desc6 = new ActionDescriptor();

    idRd var = charIDToTypeID ('Rd');

    desc6.putDouble (idRd, theR);

    var idGrn = charIDToTypeID ("Grn");

    desc6.putDouble (idGrn, g);

    var idBl = charIDToTypeID ("Bl");

    desc6.putDouble (idBl, theB);

    var idRGBC = charIDToTypeID ("RGBC");

    Desc5.putObject (idClr, idRGBC, desc6);

    var idsolidColorLayer = stringIDToTypeID ("solidColorLayer");

    Desc4.putObject (idsolidColorLayer, idT, desc5);

    executeAction (idsetd, desc4, DialogModes.NO);

    };

  • The colors may not appear correctly on my site as they do in photoshop and explore.

    Why don't the colors appear correctly in Firefox? They are exactly the same color gold firefox shows them as being slightly different. I checked in Photoshop. Same RGB hexadecimal, even. It seems correct in Internet Explorer but not in firefox. The color is: hexadecimal: #0FCFF3 RGB: 15,207,243.

    This may be due to a problem with the profile for your monitor screen colors or color profiles embedded in images.

    Try disabling color management to test whether it is caused by a problem with color management.

    You can set the pref gfx.color_management.mode to 0 on the topic: configuration page to disable color management.

    You have to close and restart Firefox for the changes to take effect.

    See:

  • Table of clusters and the cluster is a bar counter, how can I change the color individually?

    Table of clusters and the cluster is a bar counter, how do I change the color of the bar individual meter for each element of the array?  I just realized that you cannot change the properties of an element of the array without changing everything.  For scale, I had to make digital for each graduation of the scale indicators so that each measure meter in the table in the cluster has individual scales.  I also had to do some calculations for each barmeter to display the correct proportions of 0 to 100% on the scale.  Now, I'm stumped on the color of the bar counter.  Basically, if the value exceeds a set value, the meter bar should turn red.  It must be in a table to be infinitely scalable.

    Thank you

    Matt

    And yet anothr approach...

    Right click on the bar of > Options to fill > maximum fill.

    The fill color of the same color as the background color, then make the background color transparent.

    Drop a box of color BEHIND the bar and the size correctly.

    He has this strange background 3D with flat bar, but what the Hey, his relatives. If its important a custom color box.

    Ben

  • restore the color on the copy scanned after fixing slight leak photoshop cc

    restoration of color after correction of light photoshop cc leak.

    I have a color photo scan which has an orange light leak. How can I do

    the Orange go away? Most of the tutorials turn the photo in black and white.

    That part for me is easy, that I can not do is to restore the color photo

    without the light leak orange. Or is it not LC? I've been

    following a former RetouchPro (PS 7) tutorial that works well for black and

    White, but the last part, which should turn the photo in color, don't

    does not work.

    --

    You can go there. I took the liberty to fix the General color also cast

    There is no information left in the lower right corner, so he'll just fade into oblivion.

    I always do with adjustment and then layers paint in little by little adjustment. Add new adjustment layers as you go. The 4 lower layers are the Basic setting, the finishes just top 4:

  • Hue Saturation in Photoshop - how to choose the color of the library or the color selector please?

    Hello

    I'm new to photoshop and I'm trying to change the background color.

    I clicked on the menu, "select", then "color range", "overview of the selection" gray scale selected, then clicked OK, this has highlighted the sections I wanted to change the color of black.

    I then went to the "Layer" menu then "new adjustment layer" then "hue/saturation" where I could use the slider to change the color, but I would like to change the color of a color in my library (my colors brand) or at least use a color picker to choose these colors or enter a hexadecimal value.

    Some help would be greatly appreciated, I can't find anything online to help.

    Thank you

    JO

    If you start a new file, the easiest way is to choose the background color immediately:

    I chose the background color, and you can type in the hexadecimal code. You can even save this preset.

    For a file existing, presupposed the background layer has a different solid color: change the background layer to a regular layer (must be unlocked, changing the shade of foreground (you can use the color picker), use select all to select the entire layer and use the paint bucket to fill with the foreground color.)

  • How to fix the color profile of the monitor to work in Photoshop

    Hello

    I have a problem with Photoshop on my laptop. When I screenshot of my workplace and paste it into a new file (and repeat the process several times), it looks like the following on my screen: http://imgur.com/5U4j387

    As you can see, with each iteration, the color becomes more yellow-ish. Also, when I take screenshots of websites, they do not show the real colors, but a slight variation.

    On my desktop, it works perfectly: http://imgur.com/V04nOQK

    How can I solve this problem? It's a Photoshop or a display issue?

    Thank you!

    This is normal and expected, unless your monitor profile is be the same as the document profile (e.g. sRGB).

    A screenshot is color monitor, not space color document. RGB values have been converted (by Photoshop, on the fly), they are sent to the monitor. It is the normal color management chain.

    Standard procedure with screenshots is to assign the monitor profile, then convert to sRGB. Then they match.

    Monitor profile is set at the level of the operating system. Photoshop uses any monitor profile sent by the operating system.

  • Photoshop cs5 - the color is different.

    Photoshop cs5

    qna.jpg

    When you work with the original picture in Photoshop,

    The color is different.

    The color of the image of working paper is not accurate.

    What is the problem?

    Photoshop cs5

    I suspect it is a problem of the monitor profile.

    If you have a stallion, use sRGB IEC61966 - 2.1 if not re - calibrate.

    Since I'm not fluent in one of the variants of Chinese, I can't tell what settings to save to the Web are here. But to match the SFW to main display of Photoshop, you must ensure that all color management is enabled.

    SFW, color management is disabled by default. To activate it, set Preview "use profile embedded. Check "convert to sRGB" and also check "embed color profile".

    Now both correspond, but notes that if the monitor profile is broken, it also means that they all have both wrong. Check if the monitor profile is always the first step.

Maybe you are looking for

  • Recovery discs - Y410

    Where can I find instructions to create my own recovery disks?

  • my basket

    trash on the desktop shows that there is something in there.  When I open it its empty.  I tried to empty anyway, and he said, are you sure you want to remove windows...? I find it a little scary. What should I do?

  • R420 SNMP memory status

    Hello I try to get the status of memory via snmp on R420, idrac7, bios version 1.5.2 firmware 1.57.57. I am able to get other statutes as cpu but memory. IDRAC-MIB that i've got has supported the following responsible OID: memoryDeviceStatus 1.3.6.1.

  • How can I get a valid redemption code

    I don't know where to go for help with this case. I bought a 12 month prepaid Creative cloud photography Plan of BestBuy.com, but when I entered the redemption code, I got the error message below.Oops! This code does not appear to be active. Contact

  • Caused by: java.lang.ClassNotFoundException: weblogic.security.SecurityLogg

    Hi all I installed Weblogic server in Redhat Linux and when I try to run start Weblogic service, I get the following error from weblogic with the Java version:Java version "1.6.0_33".Java (TM) SE Runtime Environment (build 1.6.0_33 - b04)Java for 64-