HSB Average from Selection + HSB Adjustment

Little bit of an unusual one for you here; but here it is anyway... Is there any way to get the average HSB value of a randomly selected area without applying the average filter, using script?  The selection is already created before the script is run, so all the script needs to do is get the selected area's average HSB value.  Additionally, is it possible to then adjust that selected area's HSB values to a predetermined value?  I want it to keep the detail, but say, darken an area if it's brighter than the preset or desaturate it if the color is too strong.  Any ideas on how to do these/if it's possible to do these?  I'm pretty sure the second one's doable, but not so sure about the first, so any help is appreciated.
dgolberg

Well, I'm in RGB/8 color mode, but I'm using the HSB (via the color picker window) to determine the difference in brightness of the resulting color. 
Anyway, below is an example of what I'm trying to do (I couldn't use the actual project due to NDA, but it's the same methodology).  The first image is the original photo with a color palette for various stains in the lower right corner.  On the palette, I took the original stain, selected it and averaged it out to get a base color to work with.  I then cut out the object (in this case the cabinet) to apply the "stain" to. 
The method I had been using was to then create a fill layer below the cabinet layer using one of the stain averages, desaturate the cabinet layer and set it to soft light and duplicate it.  After seeing your mention of luminosity and linear light, I tried those, but got even darker results.  Instead, I found 1 soft light layer and 1 luminosity layer over that gave a slightly better result than 2x softlight layers, but they still come out the same brightness.  The 2nd and 3rd picture are examples of my results after merging the color layer and 2 overlay layers together.  The 2nd picture is the top stain, the 3rd is the next one down from that.  Now, they're not TOO far off in this one; but sometimes the original we work with has a darker stain to it, so the result comes out too dark compared to the palette, even though it looks good otherwise. 
Obviously, some stains are just too dark to do anything with, but the ones we're having the most trouble with we can still get to look right, albeit through a very lengthy and manual process of curves, saturation, and color balance; and often the manual method comes up with inconsistent results.  Basically, what I'm trying to do is automate the process to not only speed things up; but to get more consistent results than we currently are getting from the manual method (often times others have to do the process, and their proof colors may be off or they simply have trouble adjusting the colors correctly).  So far, this method is getting our colors much more consistent, but the brightness is still a bit off due to the intensity of the original; which is why I keep referring to HSB, as I can see the Brightness of the texture this way.
All I need to do now is create a script that can get the color of a random location in the image (basically the layer that was cut out from the background then altered and merged back into a single layer like images 2 and 3 above), and compare the averaged brightness from the stain palette to the averaged brightness from the merged layers.  I know how to get the color of a specific location, but not of a random location that is ever changing (the object(s) we're working with are usually in different places in each photo), which is what I'm stuck on now.  I would assume that, if it even is possible, it would require either a selection of the area or a transparent layer where it can pick the color from the areas that have pixel color and ignore the transparent sections.
Does that help any?

Similar Messages

  • Why are my eyedropper targets changing when I select my adjustment layer?

    Consider this simple document with 2 layers and an adjustment layer:
    Note the eyedropper targets. They read as expected:
    Now, observe what happens when I click my adjustment layer (this is a new Levels adjustment that has NOT YET BEEN TOUCHED - so there should be NO CHANGE)
    It doesn't matter whether the adjustment layer or its layer mask are selected, the results are the same.
    Here are my eyedropper settings:
    Proof Colors is off. I can't think of any other setting to play with.
    This looks like a pretty huge bug to me, and it's not something I remember from earlier versions. Does anyone know what's going on?

    Thanks for the added clarifications Noel. Can you perhaps explain to me how the behaviour of the color sampler in the info palette is actually desirable?
    Let's look at my example again. When I am trying to make an adjustment and I'm looking at my color sampler targets, I _must_ have my adjustment layer selected. Target #1 is pointed over a white pixel. Regardless of which layer I have selected, that pixel is white. I can't imagine a scenario in which the readout should be anything other than 255,255,255. That's not a feature, that's a design mistake.
    If I want to see, in the readout, the value of the background image's pixel, then I should hide the layer that contains that white shape. Then, that pixel is no longer white, and the color sampler readout should reflect that. Makes sense.
    If you truly and honestly believe that users are interested in the color that is a result of compositing all the layers below (and including) the currently selected adjustment layer when they are plaing with the adjustment layer controls, then the UI must temporarily hide any layers above that color sampler as soon as I select the adjustment layer. This is the only correct UX design in that scenario - so that the color sampler once again reflects exactly what is "true" - namely the pixel color on the screen that it is sampling.
    And if you re-read that last paragraph you will intuitively know that that would be crazy. I mean, there's no way that a user would want to have the UI hide any layers just because he's clicked on the Adjustment Layer - he probably wants to see the adjustment in the context of the entire composition. If he wanted to hide those other layers, he'd do it himself.
    I urge you to reconsider this from the perspective of a real-world user and consider logging this as a bug. I just can't see any way that it isn't a mistake.

  • Plugin crashes when I select an adjustment layer in a layer parm

    If I drop my plugin on any layer and select an adjustment layer that is on top of the plugin's layer from the plugin's layer param, After Effects crashes. What gives? I'd love to paste some code here but it even happens when my plugin is doing nothing at all. I can comment out all of the render code and the plugin works UNTIL I select an adjustment layer as mentioned.
    Is this a problem with After Effects or is there a way I can fix this?
    Eidt: It seems native After Effects plugins also crash when I select an adjustment layer from a layer param, not just my own plugins.

    Exact same thing happening to me. Are you on CS6 as well?

  • When I select an adjustment layer I do not automatically get a mask.

    Every adjustment layer tutorial that I watch suggests that when I select an adjustment layer I should get a mask with it.  I must have something set incorrect because in my case I must actually choose a mask manually.
    Any ideas?

    Cs4/Cs5 look on the adjustments panel flyout menu and check add Mask by Default.
    Cs2/Cs3 look at the Layers Palette options from the flyout menu.
    MTSTUNER

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • How to get a value from  select one choice (created by static view)

    Hi,
    Whene ever Iam trying to get value from select one choice which is created by static view iam getting only index.How to get the actual value in 11g .please help me anybody .Thanx in advance....
    Edited by: 874530 on Jul 22, 2011 11:05 PM

    Thnax for your quick reply..
    Iam using 11.1.1.3.0 version.
    My code is
    <af:selectOneChoice value="#{bindings.DenialLevel.inputValue}"
    label="#{bindings.DenialLevel.label}"
    required="#{bindings.DenialLevel.hints.mandatory}"
    shortDesc="#{bindings.DenialLevel.hints.tooltip}"
    id="soc2"
    valuePassThru="true"
    binding="#{backing_denialcomment.denialLevelList}">
    <f:selectItems value="#{bindings.DenialLevel.items}" id="si6"/>
    </af:selectOneChoice>
    and in bean am not able to get value of attribute .Iam getting only index...

  • I am unable to synch music from selected playlists in my iTunes library onto my new iPod Classic, despite meticulously following the User Guide.

    I just purchased an iPod Classic, and after making sure I had the latest ver. of iTunes on my Intel MacMini, printed out the User Guide and carefully began learning how to operate the iPod. My first step was to ensure I had manual control (vs. auto synch) because I want only selected songs and playlists on the iPod, not my whole iTunes Library.
    On pg. 24 of the Guide is the topic "Synching music from selected playlists onto iPod Classic." Just what I wanted. OK, I selected iPod "in the source list" (aside: Shouldn't it be "in the device list?" I dispair of imprecision). This brought up the iPod Summary page, showing I had selected Open iTunes when connected and Manually manage music and videos. Next I clicked on the Music tab.
    This presented me with Synch Music next to an empty check box. Below it, and entirely grayed out was:
    Entire music library (showing a checked box)
    Selected Playlists, artists, albums and genres (next to an unchecked box).
    There's also a third grayed out item: Include music videos that is checked.
    When I selected Synch Music, I got the message: "Are you sure you want to removed existing mlusic, movies and TV shows from the iPod and synch with this iTunes LIbrary?   I selected Cancel because:
    1. The grayed option Entire Music Library is checked, not mly preferred option of Selected playlists, artists, albums and genres. .
    2. I can't find anywhere in the User Guide how to "Select the Playlists" I want to synch to my iPod. At present all I have in iTunes is my list of playlists in the left hand side bar.
    OK, my first thought was the checked box in the iPod's Summary window: Manually manage music and videos. So I went there and unchecked it, which immediately brought up an alert  to the effect "Are you sure you want to automatically synch your entire iTunes library, etc. etc...? I quickly cancelled. Thus, I seem to be in a Catch-22 situation. 
    So the questions are:
    How do I resolve the Synch Music issue so I am assured only selected playlists will be sent to my iPod?
    How do I create a list of playlists in my iTunes library to be transferred to my iPod?
    How do I manually move a playlist in my iTunes library to my iPod's lists of playlists?
    Any help much appreciated. Thanks to all.
    John in the Pacific Northwest

    For the immediately problem, you can shut down the computer and disconnect the iPod.
    There may be a process (program) running on your computer in the background that continuously monitors mounted volumes for things like maintenance, data corruption, and malware.  The iPod's storage is a mounted volume.  If you know of any such program, such as an "anti-virus" utility, and it has settings that allow you to exclude certain volumes, you can set it to ignore the iPod "disk" when connected.
    Also, if you are using automatic syncing (not the manual method) to load the iPod, and you have Enable disk use turned ON, turn it OFF.  With Enable disk use turned OFF, iTunes only mounts the iPods disk when syncing, then immediately unmounts the disk.  Thus, other processes you have running on your PC (not iTunes) will have less of a chance to make the disk "in use" and cause this problem.  You won't even have to eject the iPod before disconnecting.

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?

    HI,
    HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
    thanks,
    samba.

    By selection screen, what do you mean?   There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component?  Are you wanting to call a standard transaction via ITS - SAPGUI for HTML?  Please provide more details to your question.

  • Get ID from selected row in data table

    Hi!
    Does someone know how to get ID from row on which I click a button or link?
    getRowData() doesnt work!
    Or any other method in jsp or just something to get the ID from selected row?
    Thanks!!!

    Hi,
    I have a table with 3 columns, where column 1 represents the key, column 2 represents the data and column 3 displays the "details"-button. If you use
    String key =(String)outputText1.getValue();
    the variable key contains the key value of the row of the column in which the "details"-button was clicked. (outputText1 is the Output Text field of the first column).
    Problem with this is that the key Value must be displayed in the table but maybe it works if the OutputText Field is not rendered, too. If anyone has another (maybe nicer) solution for the problem i would be pleased to see it here.

  • Could not complete the new 3D extrusion from selected layer command because the path is too complex.

    I was trying to do a photo of mine like in this video but its not working help needed. thanks.
    http://www.youtube.com/watch?v=egyLY78H7nE
    When I tried the 3D I got an error message that said (could not complete the new 3D extrusion from selected layer command because the path is too complex.) what does this mean and how can i fix it?

    There was a bug at one time where really simple paths (like a triangle, for example) could cause that error.
    Is your path really simple (I don't plan to go watch the video)?  If so, have you installed the latest update for Photoshop?  That bug may have been fixed already.
    If it's not that, it's possible that if your path is really complex and simply exceeding Photoshop's capability.
    -Noel

  • Clip inspector in imovie not working properly - when I select a picture - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and in a clip the audio adjustment only shows a speaker? help

    Clip inspector in imovie not working properly - when I select a picture (in project library) - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and when I select a movie clip and then click on audio adjustments the audio adjustment appears as a speaker icon and I don't know how to get to the various audio options? It was working fine one minute and then I seemed to lose the functionality. Also editing a photo in a photo or getting rid of ken burns effect etc does not seem to work. help

    Can anyone shed any light on this as I am having the same problem? One minute it works fine, the next you get the error message above.
    Many thanks.

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • Stop gnome 3.2 from trying to adjust brightness [SOLVED]

    I see this error a lot in my .xsession.errors:
    (gnome-settings-daemon:1207): power-plugin-WARNING **: failed to restore backlight to 100: out of brightness range: 100, has to be 8 -> 0
    This is probably because I have samsung-tools and easy-slow-down-manager installed from AUR to get the backlight controls of my samsung laptop to work.
    Does anybody know how I get rid of this error?
    I looked in org.gnome.settings-daemon.plugins.power but did not find a way to stop gnome from trying to adjust the brightness. I tried disabling the power plugin altogether by setting 'active' to false, but this made it impossible to switch brightness manually.
    Last edited by berz_ (2011-10-16 15:54:18)

    I managed to solve the issue by applying this patch: https://bugzilla.gnome.org/show_bug.cgi?id=661287.
    Still wondering why it didn't show up in google searches though.

Maybe you are looking for

  • While dropping the old undo tablespace we get an error

    Hello friends , i Cannot drop old undo tablespace. While dropping the old undo tablespace we get an error ERROR at line 1: ORA-01548: active rollback segment '_SYSSMU77$' found, terminate dropping tablespace SQL> select tablespace_name, status, segme

  • Deploying a JAR file from Forte

    I have written an application using the Forte CE IDE. Now I want to deploy it to other PCs running JRE1.3, so I used the JAR packager to create a JAR file and I ensured the manifest had the Start class specified. Unfortunately, when I try to run this

  • HT3939 HOW AM I ABLE TO SEND EMAILS TO A GROUP IN ONE GO?

    how am i able to send emails to a group of contacts in one go? on an apple 4 i phone

  • De Maverick  a Snow leopard

    Estimados una consulta : es posible volver a Snow leopard  desde OSX Maverick  con los discos de instalación de Snow leopard?? Muchas gracias

  • Error in portlet JSP

    while trying to run JSP, its giving me following error.Pls hep me the approach i need to follow. "Error 500: /helloworld/jsp/edit.jsp(1,0) Unable to load class com.ibm.wps.pe.pc.legacy.tags.InitTag " i have already included the following code in JSP.