How can i make simple program to match colors ?(photos taken by camera)

how can i make simple program to match colors ?(photos taken by camera)

Hi khaledyr,
use a "random number" and compare for ">0.5" to get a (1 or 0) signal
What exactly are you searching for?
- Hints for choosing hardware?
- How to output voltage or relais signals?
- Help on using DAQ(mx)?
- Help on generating (boolean) waveforms?
Message Edited by GerdW on 04-16-2010 08:15 AM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • I synced two of my email accounts via gmail's POP3 thing. But now my iphone's gmail inbox shows a random selection of emails (not most recent ones that are in my inbox). How can I make my iphone inbox match what I see when I log on using a PC?

    I synced two of my email accounts via gmail's POP3 capabilities. But now my iphone's gmail inbox only shows a random selection of emails (i.e. right now it is May 31, 2013 but the emails in my inbox are a couple from Nov 12, a few from Oct 12, and then some way older than that and so on.When I log into my gmail from a computer, I see all my emails in the logical, standard order. How can I make my iphone inbox match what I see when I log on using a PC?

    If you're trying to decide between using POP and IMAP, we encourage you to use IMAP.
    Unlike POP, IMAP offers two-way communication between your web Gmail and your email client. This means when you log in to Gmail using a web browser, actions you perform on email clients and mobile devices (ex: putting mail in a 'work' folder) will instantly and automatically appear in Gmail (ex: it will already have a 'work' label on that email the next time you sign in).
    IMAP also provides a better method to access your mail from multiple devices. If you check your email at work, on your mobile phone, and again at home, IMAP ensures that new mail is accessible from any device at any given time.
    Finally, IMAP offers a more stable experience overall. Whereas POP is prone to losing messages or downloading the same messages multiple times, IMAP avoids this through two-way syncing capabilities between your mail clients and your web Gmail.
    That is from the page that you linked- does highlighted part of message ring a bell?

  • How can I make address labels, preferably matching Avery sizes, in Pages please?

    How can I make address labels, preferably matching Avery sizes, in Pages please?  Please don't tell me there is no labels facility!!

    If you have your addresses set up in Address Book, the logical place for them, that is also the logical place to print them from.
    Pages will only use one data set per page, although there are ways around this. But then that wasn't your question.
    Peter

  • How can I make my program Run forever?

    I would like to know how can I make my program execute some method while the GUI still open. I have something like this.
      public static void main(String args[]) {
        System.out.println("****************************");
        System.out.println("    PACKET READER CONSOLE   ");
        System.out.println("****************************");
        IPDetector window = new IPDetector(); // IPDetector is the JFrame
        window.setTitle("IPDetector Analyzer");
        window.pack();
        window.show();
        PortListener pl = new PortListener();// Is my portlistener class
        PacketReader c = new PacketReader();
        while(JFrame still open){// I dont know how to put a statemente here
          pl.start();// this method reads from a port and returns a string
          String cc = pl.data;// gets the string from the port listener
          while(!cc.equals("")){
            c.portWriter(cc);// writes the string into a file
      }I want that my portlistener keeps reading all the time, and if is something in the socket information.
    Should I use a thread? Any ideas? thanks.
    Chris

    I still not understanding how to make it thread. My main class is this one IPDetector. and it looks like this.
    public class IPDetector extends JFrame {
      // Declaration of the instance variables
      private static ArrayofDisplay  ad = new ArrayofDisplay();
      private ArrayofCreators database = new ArrayofCreators();
      JLabel sourceLabel;//etc..
      public IPDetector() {
        IPDetectorLayout customLayout = new IPDetectorLayout();
        getContentPane().setFont(new Font("Helvetica", Font.PLAIN, 12));
        getContentPane().setLayout(customLayout);
        sourceLabel = new JLabel("Source IP Add.");
        getContentPane().add(sourceLabel); 
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
      // I get confused here...
      private boolean alive; // Do I need to declared here?
      public void setAlive(boolean val) { // This one also?
        alive = val;
      // IPDetector Methods...
      public void displayCaller(ArrayofDisplay aD){  }
      public void setAndReplace(String text)  {    }
      public void refresh(){ }
      public boolean action(Event evt, Object arg){ }
      //etc...
      public static void main(String args[]) {
        System.out.println("***********************************************");
        IPDetector window = new IPDetector();
        window.setTitle("IPDetector");
        window.pack();
        window.show();
        PortListener pl = new PortListener();
        PacketReader c = new PacketReader();
        while (alive) {// Is this correct here?
          pl.start();
          String cc = pl.data;
          while(!cc.equals("")){
            c.portWriter(cc);
            window.refresh();
            cc = "";
    class IPDetectorLayout implements LayoutManager {
      public IPDetectorLayout() {  }
      public void addLayoutComponent(String name, Component comp) {  }
      public void layoutContainer(Container parent) {  }
    }

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • The white background makes my eyes hurt. How can I make the background a different color?

    The white background makes my eyes hurt. How can I make the background a different color?

    http://www.itworld.com/development/351097/setting-active-menu-item-based-current-url-jquer y

  • How can I make a program run in the background?

    I'm working on a custom console program. I plan to have the commands as seperate applications and create a server/client relationship so they can communicate with each other. However whenever I call a command I don't want to have a console window pop up, flicker out, etc. I want it to look like it's one complete app. So I'm wondering how can I have the app run in the background?

    If you're using a unix system, use the "&" argument (or character, what is its name anyway?) at the end of the command line.
    I think you can use javaw in the MS-Windows world.

  • �How can i make my program not to shutdown after using wsimport on runtime?

    I have this code:
    // More code before this one
    WsImport ws = new WsImport();
    String[] s = new String[3];
    s[0] = "-d";
    s[1] = "wsdl";
    s[2] = URL;
    try {       
        ws.main(s);
    } catch (java.lang.Throwable e) {
    // More code after this onewhen ws.main(s) finish its job it forces my program to shutdown too ='(
    How can i fix that?
    Any help will be really appreaciated.

    kevjava wrote:
    jschell wrote:
    [...] run it in another app and interact with it from your main app.As shown in the example here:
    [http://www.java2s.com/Code/JavaAPI/java.lang/ProcesswaitFor.htm|http://www.java2s.com/Code/JavaAPI/java.lang/ProcesswaitFor.htm]
    If the other application's main() method is calling System.exit(), this is the only semi-sane way that i know of to get around it.thanks, it worked:)

  • How can I make the new update more colorful my mother can't read the white pages with tiny lines we hate it

    How can get the color back on my iPad 2 retina  my mother can not read the new white pages with tiny line or the text messages

    You can go into the settings and make the fonts bigger, also in the accessibility, make the contrast better and fonts bolder.
    There is also the 'invert colors' but it's not the best thing since it inverts everything.
    unfortunately this doesn't seem to be a good update for those with visual issues.
    http://www.apple.com/feedback/
    You can let Apple know. They won't answer but at least you can be added to the talley of those that have issues.

  • How can i prevent and fix white eyes in photos taken with iphone 4S

    How can i prevent and also fix white eyes in photos taken with iphone 4S?  Is there a camera app that will help prevent this?

    On the photo, click on Edit, the third icon at the bottom has a red circle with a slash over it, that's the red-eye fix. Touch that and it will fix all red eyes automatically or make you touch the red eyes and then fix them for you. Not perfect, but a great help. Now, I find that the fixes do not carry over when I save the photos in my computer. Hope to find an answer for that.

  • How can I make my program run faster ? (changing colour indicators quicker)

    Hi everyone, I have a program with 100 indicator colour backgrounds that change according to 100 temperatures. A case structure (with 100 cases) sets the background colours one after the other and runs in a while loop with no timing (as fast as possible). The temperatures are loaded up from an array that is initialized at the beginning of the program. The idea is to have an overall view of the change of temperatures (just by looking at the change of colours). Everything works fine except that it doesn’t run fast enough... The change of colours is not smooth at all ... you can really see the increments. It works fine with 20 temperatures for instance. 1) Would anybody have a solution to improve this? I was wondering if Labview perhaps actualises all of the values each time one changes (just like with the excel cells: an option that you can desactivate and make things run quicker when you use a macro) which would make a big loss of time....  
    There is no data saving this is just a post treatment program. So My my program isn't doing anything else.
     2) I have attached a screen print of a problem a faced when making up the VI I attached. Why can’t I wire directly to the Index Array that is in the For Loop in my VI… I had to go throw a shift register to make up the example. When going back to my original program I couldn’t use the index array a second time (screen shot). Thanks a lot for any help, Regards, User  
    Solved!
    Go to Solution.
    Attachments:
    Forum question.vi ‏13 KB
    forum.JPG ‏50 KB

    Here's a possible solution:
    Ton
    Message Edited by TCPlomp on 11-03-2010 11:16 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Forum question.png ‏23 KB

  • How can i make a program of conversion?

    pls give me a hint in making a program of any conversion.tnx

    Would this work? (Sorry couldn't help myself)
    class ConversionApp
        Believer[] believers = new Believer[Religion.values().length];
        public ConversionApp()
            for (int i = 0; i < believers.length; i++)
                believers[i] = new Believer(Religion.values(), i);
    public void displayAll()
    for (int i = 0; i < believers.length; i++)
    System.out.println(believers[i]);
    public void convertAll(Religion religion)
    for (int i = 0; i < believers.length; i++)
    believers[i].setReligion(religion);
    public static void main(String[] args)
    ConversionApp ca = new ConversionApp();
    System.out.println("Before Conversion:");
    ca.displayAll();
    System.out.println();
    ca.convertAll(Religion.TAOIST);
    System.out.println("After Conversion:");
    ca.displayAll();
    enum Religion
    JEWISH, CATHOLIC, PROTESTANT,
    MUSLIM, HINDU, BUDDHIST, SIKH,
    BAHAI, CONFUCIANIST, JAIN,
    SHINTOIST, TAOIST, ZOROASTRIAN
    class Believer
    private Religion religion;
    private int number;
    public Believer(Religion religion, int number)
    this.religion = religion;
    this.number = number;
    public Religion getReligion()
    return religion;
    public void setReligion(Religion religion)
    this.religion = religion;
    @Override
    public String toString()
    return "Believer " + number + ", Religion: " + getReligion();

  • Apples to apples - how can I make sense of DNGPE's color readouts?

    The simple version of this question is "how do I convert a DNG file such that Photoshop's HSV (and CIELAB) readouts agree with DNGPE's?"  Put another way, I want to have the same DNG image open in Photoshop and DNGPE, and have both applications agree on the color numbers for a particular chart patch.
    It seems like using ACR to convert an image into ProPhotoRGB would get me close, at least in the hue and sat dimensions, but that isn't the case in practice. 
    Worse yet, the L*a*b* numbers disagree, and as far as I understand, they shouldn't.  The closest I've been able to get is using dcraw on the command line to spit out linear 16-bit TIFFs in ProPhotoRGB, but it's still not exact, and it strikes me as weird that I'd get closer with an open-source tool than Camera Raw.
    I'd like to just derive my list of HSV vectors from Photoshop and plug that list into a DNGPE recipe (rather than hand-tweaking color patches using the DNGPE GUI), but if I can't get Photoshop and DNGPE to agree on the source color, this becomes impossible, as I'd be comparing apples to oranges.
    Also, it's my understanding that the DNG Profile HueSatMaps are based on HSV, but DNGPE seems to specify its list of corrections as HSL... is that correct?  Any particular reason that the corrections are a list of HSL vectors that are later translated into HSV for the profile?
    Thanks in advance!

    Following up to myself here - I was able to get Camera Raw to convert an image such that the L*a*b* numbers matched DNGPE, but Hue and Sat are still off.  What I WAS doing previously, to no avail, was converting in Camera Raw using the same BASE profile I had selected in DNGPE.  I thought that since I hadn't made any corrections or changes in DNGPE, it would only be applying the base profile, and the images should match.
    To fix that, I used DNGPE to export a new profile (again, with no actual edits made), and converted using the exported profile.  Now Photoshop and DNGPE agree about the L*a*b* figures at least, though they still disagree about hue / sat.  DNGPE consistently reports hue numbers about 6º-10º higher than Photoshop, and saturation numbers that are 50-100% higher.  Saturation difference, I suspect, are from comparing HSB in Photoshop to HSL in DNGPE.  Not sure what would be causing the hue inaccuracy.  The RGB numbers differ wildly, too, so this is probably a color management issue.
    Duplicating DNGPE's color management to obtain identical Hue and Sat figures in another application is now the problem.  Put as simply as possible - "Where does DNGPE get it's hue / sat figures?"
    Message was edited by: dougboutwell

  • How can I make my iPhone 5 automatically transfer photos to my hard drive AND save them in date-named folders?

    My old iPhone (2 I think) was set to automatically copy pictures to my hard drive and it categorized them in dated folders... I don't know how I did this but I need to do it again with my new iPhone 5.  Suggestions?

    If you install Pacasa, you can set up Picase to that all you have to do is click on a button to automatically import the photos into a dated-today folder. You can also configure it to automatically delete the imported photos after importing.

  • How can I make a link a different color than the other links according to the current page?

    Hello.  I have created a navigation bar.  And I would like to style the links to have the current page link a different color than the other links.  For example, if all of the links have a black background, I would like to have the current page link to have a white background.  The reason that I would like to style them this way is so that the visitor knows what page is being visitied.
    I tried different ways but all of them did not show to make any change to the links.  This is what I have so far.  The links work, but all of them have the same color and background.  When on the home page, I would like to have the home page link to have a white background with black letters.  I would appreciate your advice.
    <head>
    ul {
        list-style-type: none;
        text-align: right;
        padding-top: 10px;
        padding-bottom: 6px;
        padding-right: 10px;
    li {
        display: inline;
    a:link {
        color: #FFF;
        background-color: #000;
        text-align: center;
        padding-top: 8px;
        padding-right: 8px;
        padding-bottom: 8px;
        padding-left: 7px;
        text-decoration: none;
    a:visited {
        color: #FFF;
        background-color: #000;
        text-decoration: none;
    a:hover {
        color: #000;
        background-color: #FFF;
        text-decoration: none;   
    a:active {
        color: #FFF;
        background-color: #000;
        text-decoration: none;   
    a.menu:link {
         color: #000   
         background-color: #FFF;
         text-decoration: none;
    </head>
    <body>
    <div class="navigation">
        <ul>
            <li class="menu"><a href="index.html" target="_self">HOME</a></li>
    </body>
    Thank you very much.

    http://www.itworld.com/development/351097/setting-active-menu-item-based-current-url-jquer y

Maybe you are looking for

  • Insert text box

    My text box option is grayed out both in the toolbox options and within the "insert" menu. What am I doing/not doing? I click outside the document, click on margin mark, what's up??

  • How to create a textfile dynamically(with in the loop) with given data?

    Hi all, Can anyone Please guide me how to create a text file in the given path dynamically? (with in the loop) with given data. For example: <% String data1="name"; String data2="address"; for(int i=0;i<10;i++) create the textfile at c:/test/sample.t

  • Hard Drive for FCP

    Hi. Can anyone recommend a hard drive? I am editing a feature length film, and considering the project will have long sequences, what specs on a hard drive would be best to use as a scratch disk? And should it be external(firewire or USB) or internal

  • AE CS6:  Could not convert Unicode characters (23 :: 46)

    I am sudenlty getting this error message. I was importing a native XDCAM file into AE Win 7 when the error message first appeared.  Subsequent to that, merely clicking on the import button (no file selected) gives the same error message. It seemed to

  • ERROR in JDBC API TUTORIAL using finally

    According to the jdbc api tutorial and reference, the way to close a pooled connection is to use a try/catch/finally block as follows: try{ Connection con = ds.getConnection("login", "password"); // ... code to use the connection catch(SQLException s