Image processing on matched patterns

Hi all
I am using LabVIEW 7.1 for image processing. I have used the pattern matching example to suit my requirements.
Now i want that whatever image processing operations i perform after pattern matching, like, threshold, circle detection, particle filter etc.. be
performed only on those patterns which have been recognised & not on the entire image. How can this be done?
Thanks all in advance

Hi James,
I suggest you to Extract that image from the main image by using ROI tools,
and thereby the you are left with the cropped image for your analysis.
Use this and paste this on a new blank image for your processing.
Regards,
Sundar.

Similar Messages

  • How to accelerate the processing time of pattern match

    How to accelerate the processing time  of pattern match
      If my camera acquire an image in 50ms, but when we analyze this image with pattern match, we need about 300ms. Except using queue to seprate acquisition
    and analysis to different loops, there is another way to directly accelerate the processing time  of pattern match ? Maybe compact rio with FPGA ?
    But I saw a paper in NI web, there is no this function in c-rio ?  
    Any suggersion will be very apperciated ~
    Ricky
    Attachments:
    aa.png ‏65 KB

    Hello,
    what matching algorithm are you using? You can reduce time using the Gaussian pyramids algorithm.You can fine tune the parameters using the advanced options.
    What is your template size/image resolution?
    I suppose using a computer with better performance would also work...
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Does " IMAQ Match Pattern 2 " support 16-bit images?

    Hi,all
          When I used " IMAQ Match Pattern 2 " to process 16-bit images, it didn't work. I tried  the " Pattern Matching example"  and have changed the IMAQ Create's "image type" to 16bits.  
    Is there any method to solve this problem?
         Many thanks!

    Hello dazee!
    "IMAQ Find Pattern 2" only supports 8bit images! You can find this in the help.
    Kind Regards, Christian

  • Image processing doesn't show

    Hi!
    I am trying to do image processing, where it will detect the object and box it up when detected. 
    However, I did not manage to detect the object, which in this case, a masking tape.
    Can anyone tell me what is wrong and how to solve it?
    Below is the attached VI that I have done.
    Attachments:
    multicam+image processing.vi ‏106 KB

    No. This is just for testing purpose. I don't have the actual image as it is for an obstacle in a competition.
    However, the obstacle is also a ring as well. 
    I just found a way to detect the object.
    I used geometric matching instead of pattern matching, but it was able to detect other things such as my laptop as well.
    Is there a way to detect the image and change the diameter of the ring so that it is able to detect other rings with a larger diameter?
    Thanks for your help.
    Attached below are the changes i have made and the images it detected.
    Attachments:
    multicam+image processing.vi ‏110 KB
    correct image.png ‏455 KB
    wrong image.png ‏499 KB

  • Over 2 to select object in image processing

    how to  Over 2 to select object in image processing???
    please help me

    Hello,
    Do you mean that you would like to make multiple geometric or pattern matches in an image? There is an example that is shipped with the LabVIEW Vision Development Module that may be of use to you. Here is a link that explains how to find this example:
    http://zone.ni.com/devzone/cda/epd/p/id/5681
    -Erik S
    Applications Engineer
    National Instruments

  • Image Processing- comparing JPeg files

    Hi All,
    sorry for posting this question at this forum, but I could not find a separate forum for Image Processing. (although i could search for such forums, but i believe they are taken off.)
    I want to compare one input jpeg file with 10 existing files and find the closest match.
    can someone give me pointers to start with. i believe there are tools to achieve this.
    thanx n regards

    Not sure about the way you are using, but look at these links.
    Resizing Photos for Emailing
    http://www.apple.com/pro/tips/emailresize.html
    Resize!
    http://kstudio.net/
    PhotoToolCM
    http://www.pixture.com/software/macosx.php
    SmallImage
    http://www.iconus.ch/fabien/smallimage2/
    ImageTool
    http://www.macupdate.com/info.php/id/23281
    ImageWell
    http://www.xtralean.com/IWOverview.html
    Resize JPEG Files
    http://www.macworld.com/weblogs/macgems/2006/09/jpegresize/index.php
     Cheers, Tom

  • Bridge CS4 - Image processing into subfolders

    Design Premium CS4
    Bridge 3.0.0.464
    XP Pro SP3
    Problem: Image processing into subfolders
    I have a folder with several subfolders containing JPG files.
    I want to reduce the file size by reducing the quality.
    I use the following to do this:
    Tools | Photoshop | Image Processor
    Bridge doesn't appear to have the smarts to traverse down into the subfolders i.e. one has to do each folder individually.
    Is there a way to have Bridge image process down into the subfolders? Thanks in advance.

    This is a job for Photoshop not Bridge, Bridge can not alter the JPEG settings.
    This Photoshop script should do what you want if you are talking about normal JPEGS and not Save for Web.
    #target photoshop
    var imageFolder = Folder.selectDialog("Select the folder with JPGs to process " + $.getenv("username"));
    var quality = prompt("PLease enter quality required 1-12 ",5);
    if (imageFolder != null)  processFolder(imageFolder);
    function processFolder(folder) {
        var fileList = folder.getFiles()
         for (var i = 0; i < fileList.length; i++) {
            var file = fileList[i];
      if (file instanceof File && file.name.match(/\.jpg$/i)) {
       open(file);
    saveFile(quality);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);  
      } else
    if (file instanceof Folder) {
           processFolder(file);
    function saveFile(quality){
    saveOptions = new JPEGSaveOptions();
    saveOptions.embedColorProfile = true;
    saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    saveOptions.matte = MatteType.NONE;
    saveOptions.quality = quality;  
    var fileRef = new File(decodeURI(activeDocument.fullName.fsName));
    activeDocument.saveAs(fileRef,saveOptions);

  • Match Regular Expression does not match what Match Pattern does

    I have read through a lot of posts about how Match Pattern does not match what Match Regular Expression will due to not processing some characters.
    However, I found a problem with the other way. A simple Reg-Ex that works in Match Pattern but not Match Regular Expression.
    What I have here is just an example. I want to use Match Regular Expression so I can specify some sub-matches.
    The reg-ex is for: one or more non-numeric characters, a space, one or more numeric characters. At the start of the string.
    How can I get this working in Match Regular Expression? I am working in LabVIEW 2010f2 32 bit. Here is the code snippet and the results:
    Rob
    Solved!
    Go to Solution.

    Robert Cole wrote:
    I think I prefer the ~ for negation since ^ is also used for beginning of the string. But we work with what we have.
    Let me offer you a tip and perhaps defend the honor of the regex a little bit.  One of my favorite features of regexes is the ability to specify character classes (and their negation).  One of the reasons I have to think about the ~ versus ^ is that I rarely use ^ in a regex alternative. 
    Some examples:
    [0-9] = \d (digit)
    [^0-9] = \D (not a digit)
    The equivalent regex for your case is: \D+ \d+

  • Searching and Matching - Difference between 'Match Pattern' and 'Match Geometric Pattern'?

    I was wondering if someone can explain to me the difference between  'Match Pattern' and 'Match Geometric Pattern' VIs? I'm really not sure which best to use for my application. I'm trying to search/match small spherical particles in a grey video in order to track their speed (I'm doing this after subtracting two subsequent frames to get rid of background motion artifacts).
    Which should I use?
    Thank you!
    Solved!
    Go to Solution.

    Hi TKassis,
    1.You may find from this link for the difference between these two,
    Pattern Match : http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_match_pattern_3/
    Geometric Match : http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_match_geometric_pattern/.
    2. I always prefer match pattern because of its execution speed, and incase of geometric pattern match it took lot of time to match your result. You may find in the attached figure for same image with these two algorithm execution time.
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney

  • IMAQ Match Pattern

    I just cant get my program to work. If I define the structure I'm
    looking for with a ROI it works very nicely, but when I try to load an
    image to look for it just crashes with the following error code:
    -1074396160
    IMAQ Learn Pattern
    System error.
    Do anyone hava a clue what that means?
    thanx

    A couple of things to look at-
    If you are loading an image from disk and trying to use that image directly as the source for the IMAQ Match Pattern 2.vi, you will need to have the image "learned" previously, and then save it as a PNG. The PNG file type can save the extra information associated with a pattern to match.
    If you are loading an image and learning it in your program, you will need to make sure that the image to learn is 8 bit, and that all other settings for the IMAQ Learn pattern are connected.

  • Image Processing in C#

    What I want to do is as in the following.
    1. Load image from jpg/bmp file and display on the PictureBox or any other image control keeping image ratio
    2. Perform Image Processing, for example, zoom in/zoom out, change brightness/contrast
    Does any .NET class supports this? or should I implement it with my own code?
    If I should make my own code, is the PictureBox optimal control?

    Hmm.  If you don't know where to start then maybe the do-it-yourself approach is not going to work for you.
    Here's code for a simple control you can use to display an image with a transform matrix and a color matrix.
    using System;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Drawing.Imaging;
    using System.Windows.Forms;
    class ImageControl : Control
    public Image Image
    get
    return image;
    set
    image = value;
    Invalidate();
    private Image image;
    public Matrix Transform
    get
    return transform;
    set
    transform = value;
    Invalidate();
    private Matrix transform = new Matrix();
    public ColorMatrix ColorMatrix
    get
    return colorMatrix;
    set
    colorMatrix = value;
    Invalidate();
    private ColorMatrix colorMatrix = new ColorMatrix();
    protected override void OnResize( EventArgs e )
    Invalidate();
    public ImageControl()
    this.DoubleBuffered = true;
    protected override void OnPaint( PaintEventArgs e )
    if( image == null ) return;
    e.Graphics.ResetTransform();
    e.Graphics.Transform = transform;
    ImageAttributes imageAttributes = new ImageAttributes();
    imageAttributes.SetColorMatrix(
    colorMatrix,
    ColorMatrixFlag.Default,
    ColorAdjustType.Bitmap );
    e.Graphics.DrawImage(
    image,
    new Rectangle( 0, 0, image.Width, image.Height),
    0, 0, image.Width, image.Height,
    GraphicsUnit.Pixel,
    imageAttributes );
    You can set a transformation matrix to do the zooming, panning, etc.  And set a color matrix to do simple contrast brightness adjustments.
    // Some example matrices
    float[][] colorMatrixElements = {
    new float[] {2, 0, 0, 0, 0}, // red scaling factor of 2
    new float[] {0, 1, 0, 0, 0}, // green scaling factor of 1
    new float[] {0, 0, 1, 0, 0}, // blue scaling factor of 1
    new float[] {0, 0, 0, 1, 0}, // alpha scaling factor of 1
    new float[] {.2f, .2f, .2f, 0, 1}}; // three translations of 0.2
    ColorMatrix colorMatrix = new ColorMatrix( colorMatrixElements );
    Matrix transform = new Matrix(
    1.5f, 0.0f, // horizontal scale of 1.5, 0
    0.0f, 0.5f, // 0, vertical scale of 0.5
    20.0f, 40.0f, // horizontal offset of 20, vertical offset of 40
    Contrast and brightness are performed together in a single matrix.  Contrast scales the output range and brightness is the offset.
    Zooming is just scale and offset.

  • Image processing with imaq vision with 2 webcams on the same computer

    Hi,
    I'm currently trying to set up 2 usb webcams (logitech quickcam for notebooks pro). I want to be able to have them both run simultaneously and do some image processing with the images that I get from both cameras with labview and imaq vision.
    As of right now, I'm having trouble getting both cameras to run at the same time. Any help would be gladly appreciated. Thanks.

    The USB IMAQ driver will not support running 2 USB cameras at a time (I believe it is a limitation of the DirectShow interface). You could open one camera, acuqire an image, close the reference to that camera and then do the same for the second camera.
    If you need simultaneous acquisition, look at possibly moving to 1394 cameras or analog cameras.

  • Image processing

    Sir,
       I am a beginner in LAB View am using labview 2013.i want to do image recognition using labview.can you please give me some basic programs on image processing and image recognition so that  i can understand atleast image acquisition and processing.i have only lab view software sir.should i download any other software for image processing? if so which software and is it free?please give me the link also sir.please help.
                         thank you.

    Hi,
    you can use LabVIEW to do image recognition. Here is an example of the basic functions to do so. You can also search some examples with the Example Finder.
    This little program looks for an image in a folder. He analyses each picture, and makes a comparision between the searched picture and the pictures in the folder.
    I hope it will help
    Giuliano Franchetto
    Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
    Attachments:
    img recognition.zip ‏43 KB

  • Image Processing in Bridge lost PSD originals HELP!

    I am somewhat new to using Adobe Bridge CS4 super frequently, I have been processing batches of images mostly using the 'Image Process' function under tools>photoshop>image processing. I was using it to watermark my photos and size them down. It worked great, did everything I wanted it too and made it's own JPEG folder with all my processed images. HOWEVER I just discovered that when I process them it is somehow is taking the original image and flattening it so it looks like a JPEG even though the file still thinks it's a PSD file. The size is small and all the layers are gone, basically it looks EXACTLY like the JPEG file I'd just made but it's the original file and it's still a PSD (in theory!). I've been racking my brain trying to figure out when I'm doing wrong here! Been all over the internet trying to find a similar situation and I've had no luck. Any thoughts? I'd really appreciate the help. These particular photos are ready to go to print, but I've got my watermark on them and can't exactly remove the layer that isn't there anymore! HELP
    Oona

    Yes I was converting images from PSD to JPEG with the image processing but I was running an action (within the same dialog box) to make the file sizes much smaller for easy upload to the web? Does running an action affect the original as well as the processed images?

  • Image Processing in Java (E-Book) Request

    Can anyone post the links for this e-book
    i think this e-book is helpful.so,iam requesting all of you.
    Image Processing in Java
    by Douglas A. Lyon
    Publisher: Prentice Hall PTR; Bk&CD-Rom edition (March 1, 1999)
    Language: English
    ISBN: 0139745777

    Check ebay, amazon or your local seller for a copy. Or if you want a free copy, write the author (maybe he's a generous fellow), but don't bother people on this forum with posts like this.
    - Travis

Maybe you are looking for

  • Error while starting the weblogic server

    hi all i got the below error while trying to start the weblogic server on windows machine (win2k3-sp1). please suggest me the best way to overcome from this problem. thanks in anticipation. "FATAL ERROR: Exception from System.loadLibrary(smjavaagenta

  • Document does not exist (Message 06 619) in creation of PO

    Hi All Can any one help on this below issue: The error is 'Document does not exist' on each item that was on that RFQ to wrong vendor. That is because I sent them out on an RFQ with different vendor. Now I wish to process and save the PO to correct v

  • One file to be sent to one of two message types.

    Hi, I have gone through many other messages but didn't get an answer. Please read the issue. I have one file with 4 (suppose) records out of which 2 records go to one message type and the rest to other. I have two message mappings for each message ty

  • Can oracle discoverer 10 be installed on Windows 2003 server

    Hi, I have couple of queries related to Oracle Discoverer. Need help urgently. 1. Can Oracle Discoverer 4.1 version support Windows 2003 on which Citrix server version 4 or above is installed? If yes, please let me know the patch details to download

  • Image transparency in 7650 and other s60

    I have a problem with image transparency in s60 phones. I have 2 versions of .png files. One I got from graphic designer with transparent background, the other is the same file, but I saved it in IrfanView, choosing the transparent background color.