Replacing colors in a picture control

Hi all,
I'm running into some performance issues with the frequent updating of colors in a picture control. This is the method I'm currently using to update the colors.
The picture contains only two colors; the color of the icon, and the pane color to mimic transparency.
is this method possibly too slow and could be the culprit of perfomance issues, and is there a better way of doing this?
Thanks

Hi Gazebo,
a loop-less approach:
It's not perfect as it creates datacopies and has a coercion dot inside, but may provide ideas!
You may even use ReshapeArray to work with a 1D array (in the core of the routine), LabVIEW usually is faster then…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Q: Repost. Visualizing Measurement Data in Picture Control. Was: Color Table Question

    I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
    values. These values represent grey scale light intensities.
    I'm trying to use for this the Flatten Pixmap.vi, followed by Draw Flattened
    Pixmap.vi.
    Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
    compressed the data for each pixel to 8 bits.
    Then, as I understood, I should connect an array of 256 elements to the
    Color input of the Flatten Pixmap.vi.
    What should contain the elements of the mentioned array so that I get a gray
    scale image? Where can I read about this or find an example?
    Thanks a lot in advance.
    Victor

    Thanks to all of you who tried to help me. The problem isn't totally solved
    yet but I could advance.
    For unknown reason my newsgroup server hasn't carried out their answers,
    that I have recently seen through the NI site.
    Victor
    "Victor Manta" <[email protected]> wrote in message
    news:[email protected]..
    >I wish to visualize in a picture control a matrix of 80 * 80, 16 bits
    >values. These values represent grey scale light intensities.
    >
    > I'm trying to use for this the Flatten Pixmap.vi, followed by Draw
    > Flattened Pixmap.vi.
    >
    > Because the Flatten Pixmap.vi doesn't accept a 16 bit pixmap, I have
    > compressed the data for each pixel to 8 bits.
    >
    > Then, as I understood, I should connect an array of 256 elements to the
    > Color input of the Flatten Pixmap.vi.
    >
    > What should contain the elements of the mentioned array so that I get a
    > gray scale image? Where can I read about this or find an example?
    >
    > Thanks a lot in advance.
    >
    > Victor
    >
    >

  • Picture control rotation - losing color table

    Hi:
    I have some code to rotate pixmaps in a picture control.  I am attaching it here with a sample .png.  I lose the default color table when the rotation occurs, and I don't know why.  Any thoughts?
    Thanks,
    Don
    Attachments:
    picture_manipulation.llb ‏627 KB
    test.png ‏19 KB

    You probably need to manually select the polymorphic instance for the "draw unflattened pixmap.vi" in the orientation event case. Right-click on it and "Select type... Draw 8 bit pixmap". Seems to work just fine here after that.
    LabVIEW Champion . Do more with less code and in less time .

  • LabVIEW picture control - many updates - memory problem

    Hello,
    I have limited experience with LabVIEW and I'm currently using a picture control in one of my applications.
    The idea is that certain regions (rectangles) inside the picture control get updated all the time with different colors. (depending on a measured parameters)
    I have a main while loop which holds a shift register containing the picture control.
    I noticed that the different "Draw Rectangle" operations I'm performing are accumulated so the memory keeps increasing...
    I've made a small example program that demonstrates this behaviour.
    I want to keep updating the picture control all the time in an easy way. How can I make sure that the memory does not get accumulated? Are there functions with which I can replace a part of the picture control with new pixel values instead of simply adding these new values each time to the picture control?
    Thanks in advance for all your help!
    Solved!
    Go to Solution.
    Attachments:
    Test picture control.vi ‏50 KB

    Adding to the above...
    THe Picture control has a property "Erase first" that can be set to always erase, don't erase and erase once now that can be used when you need to re-build the image.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • In acrobat 9 pro how do you fill a color in a picture?

    Hello Everyone,
    Does anyone know how to fill a color in a picture using Adobe acrobat 9 Pro. Lets say you have a picture in PDF format, that has a picture of a billboard, and that billboard is not really straight, kinda different shape, how could someone leave it in as a PDF and color the bilboard?
    Any help would be great!

    Actually Graffiti it might be able to be done via 'touchup tool' without creating a new PDF. Assuming of course a photo editor like Photoshop is present.
    To the OP: Acrobat is intended as final destination format and not really suitable for editing (although minor changes can be made with the full Acrobat product). It's always best to do the changes to the original document and then make a new PDF making sure you acknowledge proper version control procedures. Changing the PDF means that you now have a PDF that doesn't match the original document.

  • How do i set the size of 3d picture control

    dear sir,
                I have attached my vi.I have one doubt  ie I have used translate object. vi in my vi to move my picture according to the value set by the y position.This y position indicates depth my object.this is sample object  insteat of i am going to update my underwater vehicle.
    What my problem is when i chnage the y value beyond 200 I can not see my picture.so  how do i set the size of the 3d picture control size.
           I have to see my picture within the 3d picture control eventhough i change the y value between 0-500,how do i solve my problem.
    Another my doubt is how do i show the depth value (ie y value in translate object .vi) in 3d picture control ie while the picture is moving in a 3d picture control at the same time i want to display the corresponding depth rating in the 3d picture control
    Pls anyone suggest me as soon as possible.
    Thanks and regards
    jayanthi.k
    Attachments:
    Untitled 1.llb ‏67 KB

    Jayanth,
    Take a look at the attached example.  Alternatively, you can search for it in NI Example Finder by going to Help>>Find Examples in LabVIEW, click on the search tab, and search for meshes.  I had difficulty reading your code, but I believe you need to position your lighting source in the optimal location to get better definition.  And the example shows how to bind a color to the object.
    Trey B
    Applications Engineering
    National Instruments
    Attachments:
    Using Meshes.vi ‏76 KB

  • Find Object.vi function of 3D picture control - when object not found

    I am using Labview 8.2, and this post is regarding the 3D Picture Control.
    I am wanting to make use of the "Find Object" VI to either return a reference to a named object, or otherwise determine that it does not exist yet.  However, if I call it with the name of an object that doesn't exist yet (i.e. just any random string), it returns an error message that arises from the attempt to release a queue (the reference to which gets lost when crossing a zero-iteration For Loop's tunnels), instead of an error message that says "Object not found" which I would find much more useful.  With a simple modification of the "Find Object.vi" function, this behaviour can be changed, by replacing the For Loop's tunnels with shift registers.
    The problem with the current function is that the error is not an intentionally thrown error, rather just the result of the queue's refnum being set to the default 0 as it "exits" the For Loop, since in the situation that an object is not found, the code passes a 0 to the N terminal.
    The attached images show the problematic code and the simple modification
    Attachments:
    Find Object.png ‏2 KB
    Find Object_modified.png ‏2 KB

    pauldavey,
    I agree with you - the current way of handling the case of an object not being found does not appear to be ideal.
    This was reported to R&D (# 43D8GSVQ) for further investigation.
    Thanks for the feedback!
    Regards,
    Simon H
    Applications Engineer
    National Instruments

  • ACR 4.6 Picture Controls

    I am confused about what is happening.  Any help would be appreciated.
    I understand that Nikon Picture Controls can be used to change the color balance which may give better color.
    I am running CS3 in a 64 bit Vista Ulimate operating system
    What I am trying to understand is how the Camera Profile works in the Camera Calibration tab in ACR.  I am currently shooting a Nikon D200 and a D300.  I understand that Nikon picture controls can be available in the Camera Profile of the Camera Calibration tab
    I went to http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4040&fileID=3754 and downloaded ACR 4.6.  I then unzipped and installed.
    After installing ACR 4.6 I downloaded and installed GND 5.5 at http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4576&fileID=4244
    The Title bar in ACR shows Camera Raw 4.6.  The Camera Profiles in the ACR Camera Calibration tab shows ACR 4.4 and 4.3.  After installing GND 5.5 the Nikon Picture Controls (NPC) appear in Camera Profiles.  When I click on one of the NPC it seems to work but the Shadows, Red green and Blue Primaries are not changed.
    When I go to the DNG 5.5 DNG Converter in the compatibility section of the preferences section it says that it should work for 4.6 and later.
    My confusion relates to the fact that my Camera profile in the Camera Profile shows ACR 4.3 and 4.4 – not 4.6 and the DNG converter preferences says 4.6 and later.  Someone that I know who downloaded and installed ACR 4.6 and DNG at the same time has the camera profile showing 4.6. 
    Do I have a problem or am I spinning my wheels?  If I have a problem how do I correct the Problem?

    Forums #1 wrote:
    My confusion relates to the fact that my Camera profile in the Camera Profile shows ACR 4.3 and 4.4 – not 4.6 and the DNG converter preferences says 4.6 and later.  Someone that I know who downloaded and installed ACR 4.6 and DNG at the same time has the camera profile showing 4.6.
    The fact that there are two older profile versions (4.3 & 4.4) simply mean that the FIRST version to support your camera model was 4.3. The fact that 4.4 is there as well means the profile was modified (improved) for ACR 4.4. the reason both are there are for legacy reasons...
    Looking at the Profile drop-down is NOT the way you determine the current version of Camera Raw you have loaded...the ONLY way is using the  "About Plug-ins" menu item or looking at the main ACR title bar in the window (as long as you aren't at full screen).
    If you have the Adobe Standard and the vender looks profiles loaded, you're good to go...as to what those profile will or won't do to and for your image...well, that's for you to decide. I tend to use Adobe Standard.

  • HP PSC 1600 All-In-One error message remove and replace color cartridge

    I get the remove and replace color cartridge and printer or scanner won't work. I have replaced the cartridge with new ones twice and it still happens. Just installed a new HP color cartridge and no luck. I've tried everything I can think of.
    Please, does anyone have any other suggestions????
    Thank you,
    Mary Jean Kelso

    Hi MJKEL,
    Welcome to the HP Forums.
    I see that you are having an issue with errors on the printer pertaining the ink cartridges.
    I do have a few steps that we can try in the attempt to troubleshoot this issue.
    First off, please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    I have also located a documet that deals with A 'Remove and Check [color / black / photo] Cartridge' Error Message Displays on the Printer Control...
    Please feel free to write me back if you have any other questions or concerns.
    Cheers,   
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Fireworks 8 Replacing colors

    Hi. I am trying to construct a figure using Fireworks 8. I
    need to change a picture from blue to black. Using the help
    function, I was instructed to "Select the Replace Color tool from
    its pop-up menu". And it give a picture of what this icon should
    look like. Try as I may, I cannot find the icon. Would someone
    please help?

    JCUOZ wrote:
    > Hi. I am trying to construct a figure using Fireworks 8.
    I need to change a
    > picture from blue to black. Using the help function, I
    was instructed to
    > "Select the Replace Color tool from its pop-up menu".
    And it give a picture of
    > what this icon should look like. Try as I may, I cannot
    find the icon. Would
    > someone please help?
    Press and hold on the red eye removal tool and you'll find it
    hidden
    underneath.
    Linda Rathgeber - Adobe Community Expert
    http://www.adobe.com/communities/experts/members/8.html

  • Can you programmat​ically change a picture control frame/bord​er

    In a platform neutral manner can I programmatically change a picture control frame/border
    Solved!
    Go to Solution.

    You can make it look that way using many differnt methods.
    The simplest is to make the border transparent and put a boolean behind the picture. Size the boolean so it looks like it is the border of the picture. Change the color of the boolean and you are on you way.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Help replacing colors CS3

    Hello, I got PS CS3 and I'm having a hard time trying to do 2 things:
    1) I'd like to use the "replace color" function in order to remove a background color and make it transparent. How do I do that? I can make it green, red, whatever color I like but not transparent!?
    2) There's another part, which is black, that I want to make red. Now when I replace the colors it becomes gray. There a way to fix this?
    Thanks

    Hi James,
    In my humble opinion you can get far more control with Photoshop's native blending options than with either of those 2 filters.
    Method 1
    1. Make a regular layer from the Background
    2. Layer style > Blending Options > under Blend If and This Layer: drag the white slider a tiny bit to the left.
    3. You can get even more control by Alt-Dragging the left part of this tiny triangle to the left (they are in fact two sliders) and using the Alt key splits it into two.
    I usually first put a colored layer underneath with a contrasting color so as to better be able to see and fine tune the settings.
    Method 2
    Is a bit more advanced but this way you can take advantage of the Refine Edge command.
    1. Make a regular layer from the Background
    2. Add a layer under the existing layer and fill it with a contrasting color
    3. Layer style > Blending Options > under Blend If and This Layer: drag the white slider a tiny bit to the left.
    4. You can get even more control by Alt-Dragging the left part of this tiny triangle to the left.
    5. Notice that although you have transparency the layer thumbnail is still white. We are going to fix this:
    6. Put a new layer UNDER the current layer.
    7. Activate the layer above and Merge down (Ctrl + E)
    8. Ctrl-click the layer thumbnail to load the contents as a selection.
    9. Use Refine Edge to fine tune your selection
    10. Selection > Inverse and Delete or better yet add a mask
    Regards,
    Ronald

  • Does lightroom honor my incamera picture control profiles?

    I've been struggling with this question while importing photos from a Nikon D700.
    Sometimes  I switch to different picture control settings in Nikon depending on the shooting situation.  I use D2x  profiles for portraits frequently, but on import,  lightroom seems to discard everything and applies "Adobe Standard" to all pics (RAW).  Does lightroom care? Or is picture control profiles only  apply to jpeg?
    Please let me know what is the smoothest way I  can import photos into lighroom without having to go through each photo  and adjust colors.  I'm sure there must be a way to import photos so  that they at least reflect what I'm doing in camera.
    Thanks in advance

    thedigitaldog wrote:
    The picture styles the manufactures provide are proprietary raw to JPEG processing in-camera. Only the manufacturers know that recipe.
    a bit of a myth this. Manufacturers processes are not unknown. They are not secret in any way. The settings are applicable only to the manufacturers software (or the firmware for in camera production of jpgs). LR uses different (and superior) processing tools, so cannot apply them.
    If you wish to use the in camera settings then you can
    1 Shoot RAW plus jpg. The jpg will be processed according to the manufacturers settings.
    2 Shoot RAW and use the propitiatory tools provided or sold by the manufacturer rather than LR.
    Certain proprietary settings are actually shared and used by LR. The lens corrections built into m 4:3's cameras being an example. But the colour profiles, sharpening, noise reduction etc. in LR is different to that used by proprietary software such as DPP or Nikon Capture so these cannot be used directly. Adoe makes it's own camera specific profiles for every camera, these may not match the manufacturers. In the case of some Canon and Nikon cameras Adobe also produce alternative colour profiles which closly match (but are not exact replicas) the ones the camera manufacturer uses.
    The "secret sauce" is not the information in the file, but the way each different RAW processing software uses that information. There is no right or wrong interpretation of the data and it is really down to individual preference between LR, Capture One etc. and the various manufacturers software. The biggest problem you have with using Canon or Nikon software is that it only works with Canon or Nikon cameras (which is of course the reason the manufacturers are keen on it). Whereas LR, Capture One etc. works with any camera.
    The choice is all yours.

  • Interactive picture control/indicators

    I am currently designing a front panel that draws a floor plan of an
    instrument we are controling with LabVIEW.  The individual
    components of the instrument are drawn into a picture indicator and
    their colors change according to various different states (warnings,
    interlocks, etc.)  I want to know if it is possible to use event
    programming to make these drawings within the picture interactive
    controls as well as indicators.  Can I reference an event to an
    individual component in the picture indicator, or do I have to work
    within the picture's coordinate system (the latter would be more
    tedious and probably result in me re-thinking this approach).
    Sorry for the cross posting, but I also posted a similar question on an old topic from 2003:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=58456

    See this thread for all kinds of picture control usage.
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14

Maybe you are looking for