Using IMAQ ConstructROI in IMAQ Vision

When I using IMAQ ConstructROI.vi,there will be two bottons,'OK'&'CANCEL',in the following image.How can I delete these two bottons?

The IMAQ ConstructROI VI is a high level function that allows you to easily obtain a region of interest from the user - as such you will not be able to remove the OK/Cancel buttons as they are "hard-coded" into the VI.
An alternative method would be to replicate the process found in this VI in your application as this would allow you to simply display the image window and from that extract the ROI once the user has drawn on the window. The process would be as follows:
1. Display image
2. Select ROI tool (either show tools palette or force user to use a particular tool e.g. rectangle using IMAQ WindToolsSelect
3. Wait for the user to draw on the image - there is a function that will wait until a user event (such as draw) is generated - IMAQ WindLastEvent
4. Get ROI from image window using IMAQ WindGetROI
5. Use the ROI as part of your image processing algorithm.
The IMAQ Vision Reference manual has more detailed help regarding the use of these VIs - some of the "older" examples i.e. prior to IMAQ Vision 6.0 show this approach being used. Some of these examples may still exist so I would suggest browsing through the examples for some sample code.
Jeremy

Similar Messages

  • I am using IMAQ vision for Measurement Studio, Ver6.0 with Measurement Studio Base Package,Ver6.0(Professional Edition).Can I work in IMAQ Vision for Measurement studio, Ver6.0 If I upgrade Measurement studio to Enterprise Edition,ver8.0.1

    I am using IMAQ vision for Measurement Studio, Ver6.0 with Measurement Studio Base Package,Ver6.0(Professional Edition).Can I work in IMAQ Vision for Measurement studio, Ver6.0 If I upgrade Measurement studio to Enterprise Edition,ver8.0.1
    Thanks
    Biswajit

    Howdy Biswajit,
    The IMAQ and Vision ActiveX controls you are using with Visual Basic 6 do not install with Measurement Studio. They are installed when you install the IMAQ software and include support for Visual Studio 6. Upgrading to Measurement Studio 8.0.1 will have no effect on your IMAQ controls since they are not related to one another. Purchasing Measurement Studio Professional or Enterprise packages allows you Visual Studio 6 support for other ActiveX components. Refer to this link for a list of ActiveX components included in those packages. 
    If you are asking about using the ActiveX controls in .NET, then take a look at this KnowledgeBase entitled Do NI-IMAQ and NI Vision Support Microsoft Visual Studio .NET?
    Hope this clarifies things!
    Best Regards,
    Jonathan N.
    National Instruments

  • Is there an example somewhere that shows how to acquire StillColor images using IMAQ Vision calls?

    I need to be able to acquire images from both composite and RGB channels. I am also confused of how to display them and modify display settings as go from color to grayscale to binary.Thanks.

    Jerry,
    I have attached a CVI example for doing stillcolor acquisition. If you are using LabVIEW, there should also be shipping examples for stillcolor acquisition under labview\examples\imaq\imaq color.llb
    To configure your imaq board for stillcolor acquisition, please refer to the following KB
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/cc743c416e390c008625683f007562c7?O​penDocument
    Hope this helps.
    Ken Sun
    Applications Engineer
    National Instruments
    Attachments:
    advanced_stillcolor.c ‏8 KB
    advanced_stillcolor.h ‏3 KB
    advanced_stillcolor.uir ‏19 KB

  • Can anyone help me out to find the diameter of the hole using imaq vision?

    have to measure the diameter of the holes and generate the report in the format given belowI have also enclosed the image to be processed)
    example:
    HOLE SPECIFICATIONS PLATE NO. 1
    X Y DIAMETER X Y
    C 8.4 3.79 3.122 8.472 3.675
    D 8.51 3.54 3.117 8.579 3.647
    F 0 0 1.089 0 0
    H 4.08 9.474 1.083 4.045 9.731
    J 3.78 9.86 0.845 3.698 9.957
    can anyone help me out to solve it,, Thanking you in advance!
    Attachments:
    03260005.JPG ‏103 KB

    Hello.
    I have some suggestions for the image processing component of your application. I have attached a Vision Assistant script to this post (Vision Assistant 7.1) which performs essentially the following steps. These steps could be followed in any programming environment and should yield decent results:
    Extract the Luminance plane from the RGB image (simply to get it into 8-bit mono format for the thresholding. Could be done with a color threshold VI).
    Threshold the image so that the bright components are left and the dark is set to 0.
    Perform a particle filter to remove the particles that are too large (the surrounding area).
    Perform a particle analysis on the remaining particles, which should be the holes in the
    plate only. Set the particle analysis to return the Location of the 'Center of Mass X' and 'Center of Mass Y,' and the perimeter (diameter).
    This type of processing would allow the plate to be rotated, have different patterns, etc. and you should still be able to get the information about the holes.
    Hope this helps.
    Regards,
    Colin C.
    Applications Engineering
    Colin Christofferson
    Community Web Marketing
    Blog
    Attachments:
    ExampleHoleScript.scr ‏2 KB

  • How do I convert an IMAQ image buffer into an IMAQ Vision 'Image'?

    Using NI IMAQ and IMAQ Vision with LabWindows/CVI 6.0...
    I have some acquisition code that uses IMAQ img functions to set up a
    triggered image acquisition and stores the image into an 1D unsigned char
    array buffer.
    I would now like to add code that uses the IMAQ Vision functions. The IMAQ
    Vision function use an Image data type, which from what I can glean from the
    ..h files, is a structure.
    Is it possible to convert the 1D unsigned char array image buffer to an
    Image? How would I do this?
    An inefficiant brute-force way would be to write the image to a BMP file
    from IMAQ using imgSessionSaveBufferEx, then read the same file back in
    using IMAQ Vision imaqReadVisionFile. I am hoping there is a more elegant
    way to perform the conversion in memory without needing to write disk files.
    Thank you,
    Robert Rafuse
    Etec, Inc.
    tel: (978)531-5025
    e-mail: [email protected]
    web: http://www.etec-inc.com

    Bob Rafuse wrote:
    > Is it possible to convert the 1D unsigned char array image buffer to
    > an Image? How would I do this?
    Never mind. I found:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F11556A4E034080020E74861&p_node=DZ52490&p_submitted=N&p_rank=&p_answer=&p_source=External
    which indicates that the img functions actually return a 2D array, so I can
    use imaqArraytoImage after all.
    My bad.
    Bob

  • How can I define a non-rectangular (eg. circular) ROI for pattern matching using IMAQ?

    I would like to create regions of interest that are not rectangular using IMAQ Vision Builder. Including polygons, circles, etc. I am using version 5.0.
    Thank you.

    Hello,
    The current pattern matching algorithm requires a rectangular ROI. See the IMAQ Vision Concepts manual for detailed info on how the algorithm works.
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Imaq vision builder AI 1.0 not creating LV program

    I am using Imaq vision builder AI 1.0 to create Labview program through the option "Migrate inspection to Labview...." but it doesn't finds any files starting with IVB.....and the labview code is generated with these missing vi. Can any body suggest why this is happening.
    Regards,
    Mondeep

    Hi,
    The following knowledgbase article contains a patch that will allow Vision Builder AI 1.0 to generate code for LabVIEW 7.0.
    http://digital.ni.com/public.nsf/ 3efedde4322fef19862567740067f3cc/ 8ed7d85db6667a3a86256d79006f9331?OpenDoc ument
    Note:
    The latest version is 2.0
    Greetz,
    Jonas Van Otterdijk
    CIT

  • IMAQ Vision - Writing Image Files: File Format

    Hi,
    I want to save some images in LabView 5.1.1 - IMAQ Vision 2.2.1 acquired by
    a camera. Several file formats are supported:
    BMP, JPEG, PNG and TIFF
    For me the PNG format seems to the most attractive one as it provides
    lossy-less compression and platform independentness. But, in the manual
    there is a comment which I don't understand: It says that the PNG format is
    not recommend for precise gauging or inspection measurements - and that is
    exactly what I want to do.
    I always thought that once an image file is loaded into LabView there is no
    difference regarding to the file format the images were saved in. Can anyone
    explain me, what the problem of the PNG format is? Which format can you
    recommend for preci
    se gauging instead (BMP?)?
    Thanks,
    Gerd Simons

    one correction:
    I use IMAQ Vision 5.0 and NI-IMAQ 2.2.1.
    Gerd Simons
    "Gerd Simons" wrote in message
    news:[email protected]..
    > Hi,
    >
    > I want to save some images in LabView 5.1.1 - IMAQ Vision 2.2.1 acquired
    by
    > a camera. Several file formats are supported:
    >
    > BMP, JPEG, PNG and TIFF
    >
    > For me the PNG format seems to the most attractive one as it provides
    > lossy-less compression and platform independentness. But, in the manual
    > there is a comment which I don't understand: It says that the PNG format
    is
    > not recommend for precise gauging or inspection measurements - and that is
    > exactly what I want to do.
    > I always thought that once an image file is loaded into LabView there is
    no
    > difference regarding to the fil
    e format the images were saved in. Can
    anyone
    > explain me, what the problem of the PNG format is? Which format can you
    > recommend for precise gauging instead (BMP?)?
    >
    >
    > Thanks,
    > Gerd Simons
    >
    >

  • IMAQ Vision 5.0 - where are overlay vi's

    Using IMAQ Vision 5.0 for LabVIEW, I find in the online reference overlay vi's such as IMAQ overlay rectangle, etc. I want to overlay a rectangle on an RGB image to show a region of interest in the application front panel. However I can't find any of these vi's in any of the IMAQ palettes. Where are they?

    The overlay functions are new functions introduced in IMAQ Vision 6. In version 5, your options are to use IMAQ Draw or IMAQ Draw Text. These functions will allow you to type text and draw shapes on the image. The only drawback is that both are destructive overlays.
    Ken Sun
    Applications Engineering
    National Instruments

  • Dent detection using IMAQ

    can anybody suggest how to detect dent or depression on a metal surface using IMAQ Vision.The metal surface is circular with diameter of 2 inch. The surface may carry stains which is perfectly alright but dent is the problem.

    hi kyle V,
    Thanks for responding. I would like to know how lighting would be helpful in bringing out dents. Also what exactly is dark field illumination? Can you help me?

  • IMAQ vision acquisition does auto white/black level adjustment

    Hi,
    I am using IMAQ Vision to capture RS170 video from a device we manufacture. I have noticed that the white/black levels seem to be "adjusted" automatically for each image acquisition I make. I would like to turn this feature off, but cannot find a method to do this. Can anyone point me in the right direction?
    Thanks,
    Howard Spec
    CMC Electronics
    Canada 

    Hi Howard,
    It sounds like you are turning on the auto exposure before each acquisition.  Are you performing these acquisitions in LabVIEW?  If so, you may be programmatically setting the white and black reference levels.  This is done in the shipping example HL Analog Attributes.vi.  Try performing the acquisitions in Measurement and Automation Explorer (MAX).  If you hit the Auto Exposure button in MAX before each snap/grab, you should see this behavior, otherwise you shouldn’t.
    Christopher M.
    Applications Engineer
    National Instruments

  • IMAQ vision interface problem

    I am using IMAQ vision 7.0 with an IEEE 1394 camera. IMAX recognizes the camera without a problem as cam0. But when I try to use the imgInerfaceOpen.vi it returns an error when it accesses the Imaq.dll cin node.

    Since the toolkits (including IMAQ stuff) are built partly in LV, it HAS to recompile them for them to run. Since you say that a VI that's part of a toolkit has no block diagram, then no, you can't use it. You are not the first to complain about the problems in compatibility between different versions of LV. There are technical difficulties with this, and you will find opinions in both ways.
    You've run into a unique situation because the VI was shipped without a block diagram. Anyway, it's possible that in all the legal mumbo-jumbo that came with IMAQ 6.0 you will find that you're only allowed to use it with LV 6.0 (I'm sure there are people here who know). I believe that the only practicle solution is upgrading (or, if it's legal, and if this is the only VI you're missing, have someone send you just that VI).
    Try to take over the world!

  • IMAQ Vision Software with FlashBus MX Frame Grabber?

    Is it possible to use IMAQ Vision Software with a FlashBus MX Frame Grabber Card? In the manual I only find references to NI acquisition boards. Unfortunately I have to make do with the hardware I already have.

    Heiko,
    It may be possible, but you will need to find out if there are any LabVIEW drivers for the card.
    Vision analysis can be split into two components. The first half is getting the images into the computer with a frame grabber card. This can be done easily using NI frame grabbers, or with varying degrees of difficulty using other frame grabbers that have LabVIEW drivers.
    Once the images are in the computer, IMAQ Vision doesn't care where they came from, so it can be used to manipulate images regardless of the source.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Distributing Imaq Vision demos

    I have a piece of software written using Imaq Vision. I understand that I need to purchase a runtime license to distribute executables. The problem is that I need to distribute demo versions of the software to potential customers before they will commit. Is there any way of doing this without paying the $300 per executable? I would read images from file instead of from a camera. I would only need 2 or 3 images.
    NI could allow the software to work with only NI watermarked images (then an NI rep could watermark a few of my images). That would allow me to sell more software, and NI would sell more runtime licenses.
    Anyone got any ideas?
    Thanks,
    Steve

    just link:
    "If you want to distribute an application developed with IMAQ Vision, install nivissvc.dll and nivision.dll in the system directory of every target machine. These DLL files were installed in your system directory when you installed IMAQ Vision. Copy the DLL files from your system directory to the system directories of the target machines or to an installation CD.
    (!) Before distributing an application developed with IMAQ Vision, you must have an IMAQ Vision run-time license for each target machine. Contact National Instruments at 512 794 0100 to purchase run-time licenses."
    (How Do I Create and Distribute Executables Using NI-IMAQ, IMAQ Vision, or OCR Functionality?)
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/865a6ae6
    e52c755d862569a70062c903?OpenDocument

  • Problems with IMAQ Vision after upgrading from Labview 6i to Labview 6.1

    Hi,
    We just upgraded from Labview 6i to 6.1.To do this,we uninstalled the 6i version as was suggested by NI and then installed the 6.1 version.Later when we tried to run the old vi's written using Imaq vision, we ran into different problems.Has anyone experienced any similar problems with IMaq vision after upgrading?If so please help me solve this issue.
    Thanx
    deepak

    What kind of problems?
    I would strongly suggest that you uninstall IMAQ (all elements) and reinstall them. They register with Windows, probably docked to 6i, and also must be recompiled, which I believe is done in installation.
    This is your best bet.
    If you still have problems, contact NI and ni.com/ask and start a support inquiry.

Maybe you are looking for