Why I can't subtract two images in imaq vision builder?

Hi,
I have many times tried but failed to get the objects in a image by subtraction with another image which is background, in imaq vision builder(ver. 6.0). I totally can't use the "operators" command under "greyscale" to subtract the two images becauee all commands under the "greyscale" are always unactivated after two images have been stored in 2 idfferent buffers. I really don't know why and this vision builder is so difficult to use, unbelievable! I followed the instructions in its Help and it's quite simple but I totally failed to make this operation!
Two samples of images have been attached and maybe it's very ease for you to filter out objects(fibers) by subtraction each other. Show me your scrip
t if you can. It's urgent to me.
Or the idea of the way I thought for filtering the objects is wrong? Point out please if you know.
Thanks and Merry Christmas and Happy New year!!
Swedlin
Attachments:
10Img0.jpg ‏27 KB
123Img0.jpg ‏25 KB

Okay, this is not quite as straightforward as it could be, but you can do image subtraction in Vision Builder. The basic idea is as follows:
- select first object image and copy it to buffer 1
- select "image >> get new image" and load your background image from a file.
- put this in buffer 2
- retrieve object image from buffer 1
- perform subtraction. Even though these images appear to be greyscale, they are actually saved as 24-bit RGB images, so you need to use the color operators instead. Vision Builder will only allow you to select steps that are valid for the image you have loaded. You could extract the luminance plane from all of your images to work with 8-bit images if you like.
I have attached below a background image, several object i
mages, my script, and the results of batch processing. You will need to edit the "get new image" step with the correct path to the background image on your machine.
Bruce is right though. This is a bit easier in LabVIEW.
Regards,
Brent R.
Applications Engineer
National Instruments

Similar Messages

  • Why i can't see table, image, attacth files in meeting request mail.

    Hi, I'm Narongdech
    i have a little question in outlook 2013. Why i can't see table, image, attacth files in meeting request mail. i try make a new meeting request for my partner. but them can't see new mail in the correct format. 
    below,This is a image in my outlook 2007. i try to make this format. Please Help me, and let me know that.
    Thank you.

    Hi Narongdech,
    What’s your Exchange server version? I have tested to send a meeting request to my colleague with a table, a PNG picture and a word attachment in my Outlook 2013 with Exchange 2010 environment. And it can be viewed well.
    Please check whether the issue happens to all Outlook 2013 users or some specific ones. We can close Outlook and send a meeting request with pictures and attachments in OWA to have a test. If the OWA test returns everything is OK, the issue may be related
    to Outlook client. Please run Outlook in safe mode and disable all related mail software to check whether the issue persists.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Can't Open Two images at same time

    I can't have two images open at the same timer in PhotoShop CS4.
    I open a file and it displays.
    Then go to File, Open...menu and open a secomd file.
    Result THe second image opens and the first image goes away. Both files are shown in the Window menu, but I can't get both to display at the same time..
    I've the CS4 upgrade from CS3 Extended. INtel Mac Pro
    I'm sure thjere is a simple answer to this problem. I've been trying to find an answer, but haven't seen this posted.
    Yhanks
    Hoagy99

    Have You tried disabling Application Frame and turning off Preferences – Interface – Open Documents as Tabs and Enable Floating Document Window Docking?
    And please do a forum-search, because I seem to have come across this problem repeatedly.

  • Why You Can't Load Some Images On Your 5th Generation ipod

    Why You Can't Load some images on your 5th Gen ipod.
    - OK here is the scoop: I could not load some images on my 5th gen ipod and yet other images would load no problemo. Images were JPEG, jpg, PSD (all approved image types for the 5th gen ipod)
    - After doing several tests like restoring the software on the ipod, reinstalling itunes I still could not find the problem, then I noticed as soon as I would open an image in Photoshop CS2/CS3 that was otherwise loading on the ipod no problemo, when I would save that same image in Photoshop the image would not load in my ipod.
    - So after playing with several settings in Photoshop I found the problem:
    -In Photoshop go to File handling:
    -Image Previews:
    - And click on:Never Save
    You do not want to save a photo with a "Image Preview" when saving any file type that you want to load on your 5th gen ipod. it would seem the ipod will not accept any images with a "Image Preview" embedded into the file, JPEG, PSD, jpg etc.
    I hope this will help some of you because I just waisted a whole day to find this out the hard way.
    Cheers,
    Mac Fans
    BTW I use a Mac Pro/Intel OSX Tiger 10.4.9

    Also I just found out when you are saving an image in Photoshop uncheck the " Embed Color Profile" box.
    So do not embed your images with a "Preview" and DO NOT embed a "Color Profile" when saving images in Photoshop or the images MAY not load on your ipod.
    Have Fun
    Message was edited by: MacPro77

  • Why i can't see any image on flickr. That happens most of the times but not always? Both Safari and Firefox

    Why i can't see any image on flickr.
    That happens most of the times but not always?
    Both, on Safari and Firefox i experience the same problem!
    I reseted Safari but seems to be useless

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Setting maximum number of image buffers in MAX in IMAQ vision builder

    To aquire large number of images using duncan Technologies Camera (7f/s) on IMAQ PCI 1424 i'm supposed to set the maximum number of buffer images in MAX(Measurement and Automation)in IMAQ vision builder. But i do not see the option for specifying the maximum number of image buffers under the properties of PCI 1424. Please advise.
    Thanks in advance.

    The setting is somewhat difficult to locate.
    In MAX, select "Tools" on the main menu bar. Under that, select "IMAQ". The only option that comes up is "Max number of buffers".
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Can't join two images using imagetoimage

    Hello forum users!
    Well I have spent a good portion of my weekend trying to get this VI to work and I am oficially out of ideas...
    I'm using DataSockets to extract images from the web and I'm trying to join these two images using the ImageToImage function of IMAQ.
    The images are extracted just fine but when I try to join them all I get is the first image!!!
    What am I doing wrong????
    My VI is attached.
    Some test considerations:
    To extract the images be sure to add [text] to the end of the html line
    This VI only works with http and not https (DATASOCKET limitations)
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6
    Attachments:
    Untitled 1.vi ‏42 KB

    Sorry posted in the wrong area of the forum... I already reposted it in Machine Vision
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6

  • Reading TIFF images without IMAQ vision

    Hi,
    Is there anyway to read TIFF images with LV 7.1 but without IMAQ vision? I know it's possible for PNG, BMP and JPEGs, but seems impossible to read TIFFs without IMAQ Vision.
    Thanks.
    Kian

    LabVIEW doesn't do this automatically, but maybe someone has a VI they're willing to share.
    Another possibility would be to use an external program to convert the TIFF to another format (BMP for example) and then to read in the BMP picture.
    If you're looking to write something yourself, then this might help.
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Why I can't connect two edge to origin ?

    Hi,
    I have two edge server and I config Vhost.xml as same but I
    can request streaming one edge.
    :::This my config
    <RouteEntry>*:* ; 192.168.1.10:1935</RouteEntry>
    -> Edge#1 = 192.168.1.11
    -> Edge#2 = 192.168.1.12
    -> Origin = 192.168.1.10
    If I start edge#1 before edge#2 I can request stream from
    edge#1 but edge#2 it not work.
    If I start edge#2 before edge#1 I can request stream from
    edge#2 but edge#1 it not work.
    I try to check about max connection for edge server in
    vhost.xml at origin server but config is
    <MaxEdgeConnections>-1</MaxEdgeConnections>
    I don't know why about this ploblem.
    Thanks.

    Please help me. I try to set others way but it same
    problem.

  • How can i subtract two numeric numeric numbers from two switch cases ?

    I have two switch cases in my labView program. I can see them individually on front panel but i need to subtract them and see the result on front panel. 
    Can someone please help me out...
    I am trying to display (Result1 - Result 2) on my front panel. Result1 and Result2 will change with time.
    Regards,
    Awais 
    Attachments:
    play4.vi ‏122 KB

    Move result 1 and result 2 out of the case structures and subract them.
    Right now result 1 or result 2 only get written to if its respective comparison is true.  What do you want to do with the math if either comparison is false?  You haven't defined your problem clearly enough.

  • Why i can't  compare two string

    * @(#)Assignment.java 1.0 03/12/12
    * You can modify the template of this file in the
    * directory ..\JCreator\Templates\Template_1\Project_Name.java
    * You can also create your own project template by making a new
    * folder in the directory ..\JCreator\Template\. Use the other
    * templates as examples.
    //package myprojects.assignment;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.text.*;
    * MainForm.java
    * Created on 12 December 2003, 16:27
    * @author Akasha
    public class Assignment extends javax.swing.JFrame {
         private String myname;
    private String utxtname,ptxtpass;
    /** Creates new form MainForm */
    public Assignment() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
         //     JText = new JFormattedTextField();
         jButton1 = new javax.swing.JButton();
    jTextField1 = new javax.swing.JTextField();
    jTextField2 = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    getContentPane().setLayout(null);
              getContentPane().setBounds(800,800,800,800);
    addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    formMouseClicked(evt);
    addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    jButton1.setBackground(new java.awt.Color(0, 0, 255));
    jButton1.setForeground(new java.awt.Color(204, 255, 255));
    jButton1.setText("Login");
    jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(java.awt.event.MouseEvent evt) {
    jButton1MouseClicked(evt);
    getContentPane().add(jButton1);
    jButton1.setBounds(110, 160, 70, 30);
    getContentPane().add(jTextField1);
    jTextField1.setBounds(220, 70, 150, 20);
    getContentPane().add(jTextField2);
    jTextField2.setBounds(220, 100, 150, 20);
         //     getContentPane().add(JFormattedTextField1);
              //JFormattedTextField.
    jLabel1.setText("User Name");
    getContentPane().add(jLabel1);
    jLabel1.setBounds(60, 70, 150, 16);
    jLabel2.setText("Password");
    getContentPane().add(jLabel2);
    jLabel2.setBounds(60, 100, 160, 16);
    pack();
    private void formMouseClicked(java.awt.event.MouseEvent evt) {
    // Add your handling code here:
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
         myname="mazhar";
         utxtname = jTextField1.getText();
         if (myname == utxtname)
                   JOptionPane.showMessageDialog(null,"This is"+ utxtname + myname+ " first ","Welcome",JOptionPane.INFORMATION_MESSAGE);
              else if (myname != utxtname)
                   JOptionPane.showMessageDialog(null,"This is"+ myname+ "first action","Welcome",JOptionPane.INFORMATION_MESSAGE);
    // Add your handling code here
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    * @param args the command line arguments
    public static void main(String args[]) {
         Assignment assign =new Assignment();
         //width and hight
         assign.setSize(400, 175);
    assign.show();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    // End of variables declaration

    Basic java. I think that you need to read the tutorial... ;-) http://java.sun.com/docs/books/tutorial/
    BAD (yours): you are comparing objects (ref to objects -> always differents even if there contains the same thing)
    ==========
    if (myname == utxtname) {
    JOptionPane.showMessageDialog(null,"This is"+ utxtname + myname+ " first ","Welcome",JOptionPane.INFORMATION_MESSAGE);
    } else if (myname != utxtname) {
    JOptionPane.showMessageDialog(null,"This is"+ myname+ "first action","Welcome",JOptionPane.INFORMATION_MESSAGE);
    GOOD (mine):
    ===========
    if (myname.equals(utxtname)) {
    JOptionPane.showMessageDialog(null,"This is"+ utxtname + myname+ " first ","Welcome",JOptionPane.INFORMATION_MESSAGE);
    } else {
    //if (!myname.equals(utxtname)) {
    JOptionPane.showMessageDialog(null,"This is"+ myname+ "first action","Welcome",JOptionPane.INFORMATION_MESSAGE);

  • Why Mail can´t load html images when it should?

    Hi, This is odd: Mail 6.2 seems unable to load html images on e-mail received even if the preference is set properly. Any clue?

    not at all. It happens since I´ve upgraded to Mountain Lion a few days back

  • Why I can't open an image?

    I want to open an image sent to me by email, and it just appears in blank

    Mail >  Preferences > Viewing
    Checkmark the box beside "Display remote images in HTML messages".
    Best.

  • Can you use two images in the "flip" transition?

    I want to use the flip transition to show Image 1 spinning and turning into Image 2. Is there an easy way to do this? Thanks.

    The flip transition flips the whole slide rather than fliping the image on the slide. The effect is more like a page turn than a "flip"
    this is an exaple using a shape, but it will work with any object on the page if sized and positioned correctly
    place the image on the first slide
    duplicate the image
    paste it on the second slide
    change the colour of the shape
    set the transition on the first slide to Flip in     Inspector > Transitions

  • Why I can not get the image file of component?

    Hello,
    I tried to get an image file from the component. After I run the code below, there is not any new file created. Could you tell me what's wrong with it?
    Rectangle d = this.getBounds();
    BufferedImage bi = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
    try {     
    ByteArrayOutputStream boutstream = new ByteArrayOutputStream();
    // save it to file
    FileOutputStream fimage = new FileOutputStream( new File( "image.png" ) );
    boutstream.writeTo(fimage);
    fimage.close();}
    catch (Exception ev){     
    System.err.println("error making jpeg image: " + ev);
    ev.printStackTrace();}

    BufferedImage bi = new BufferedImage(d.width,d.height, BufferedImage.TYPE_INT_RGB);Straight after the above line you need to put this line:
    d.paint(bi.getGraphics());
    This is what was suggested to me in this thread(http://forum.java.sun.com/thread.jsp?forum=57&thread=369379) anyway, and it worked for me!

Maybe you are looking for

  • How to make the column title needs to be on each page?

    If a document has more than one page than a column title needs to be on each page,I can use Word fuction to do that. But If I Only use XML publisher, How to do it. Message was edited by: zhengr

  • Error Upgrading ADF App to 12c

    I have a relatively new ADF application I'm working on.  I started in JDeveloper 11g R2, 11.1.2.4.0.  Everything works fine in 11g and with the recent release of JDeveloper 12c, we figured since this isn't a production app yet, we might as well upgra

  • MYSQL JDBC NoClassDefFoundError: org/aspectj/lang/Signature

    i am trying to connect to a database via java using JDBC i have installed: jdk1.5.0_01 mysql-connector-java-3.1.8-bin-g.jar MySQL Server 4.1 Java works fine, MYSQL works fine from the command prompt but when it comes to testing using this simple java

  • Reusing JAXB generated classes for XSDs included in other XSDs

    Hi, I use xsds with jaxb in a number of related projects. To avoid duplication I've factored out commonly used elements into their own xsd in a separate project. I then include these in the xsds that need them. I generate classes with jaxb for each p

  • Column Aliases not working when using MS Query into Excel?

    I setup an Oracle ODBC connection from my desktop to an Oracle 9i DB, and created an MS Query sql: select sysdate as "Today" from dual; When I tried to run it and return it to Excel, it would ignore the column alias of 'Today' and keep putting in 'SY