Extract color planes in vision assistant
Hi!
When i try to use the "find edges" step in vision builder ai, a message tells me that the step supports only grayscale 8 bit images, while mine is a color 32 bit. i shall insert a vision assistant step to extract color planes.
But in the vision assistant, "the image is not accessible anymore", even though below in the box there is the step "original image". I can insert the image i want to work with with the step "get image", but then it works only with the one selected picture and doesnt cycle trough the folder.
What did i do wrong?
Sophia
Hello Sophia,
you can see the panel code for the vision assistant in the attachment.
A cycle through the folder with vision steps is not possible (see Link).
http://engineering.natinst.com/Applications/PSC.nsf/WebAllInfo/d4cdf720a4b9dc6186256d9800676a2d?opendocument
Kind regards.
Elmar W.
Attachments:
Panel.png 3 KB
Similar Messages
-
How can i compare two color images in vision builder for AI?
What i want to do is to compare two images. I have a base color image that represents the desired colors and tones. I have another image to be compared to the base image. What i want to do is to compare this two images to know how close they are regarding contents of color and tones. In other words, i want to know how close is image 2 to image 1 (base sample)....
I would like to know how to get the content of certain colors in an image and then compare this values with the same values from another image.
For example..i have two sheets of paper that contain various mixed colors...i want to know the amount of green, red an blue in each image and then comapre this values.
What i want to do is to compare difer
ent samples of fabrics. this fabrics must be of a specified color...but due to the process they may vary in tone or even color...so i want to compare this fabrics to a amster sample to see how close they are in color and tone..
Anything would help since i dont have experience in this type of comparisons...thanksVBAI allows you to work with grayscale images only. You can acquire an image, use the vision assistant to convert it grayscale by extracting the luminance plane (or any of the other color planes) and then analyze the resulting grayscale image. To do what you are talking about, though, it would really be better to get Vision for labview. You could then take color images, compare color plains, use statistical functions to determine average color values, and so on.
-
Extract red image with Vision Builder Automated Inspection
Hello
I have 2 camera connected to a CVS and I want to process the images to have only the red part of the images.
for that I tried to use VBAI but I din't sucess, I think nit should be in the vision assistant step, but I already tryed with "extract a color plane" and "treshold color", and when I test with an image it don't work.
Does anybody know how to that?
Thank you for your helpHello
I may be find a way to delete everythimg that is not red by substract green and blue with vision assisatant, it seems to work.
Now I try to extract only little part of the picture, only the part of the picture who are red, for that I created ROIs for some red parts of the images, and I want to record only this ROIs, to reduce the size of the file and kipping the same resolution.
Does anybody know how to do that?
I attach my Vision builder code to the message
Thanks for your help
Attachments:
Color Example red-21-7-12h30.vbai 108 KB -
LabVIEW Vision Assistant的图像处理,NI视觉助手教程免费阅读
附件里面比较全,因为发不了那么多字
http://shixinhua.com/ 石鑫华主页
http://shixinhua.com/imganalyse/2013/09/762.html 全文网站
《基于Vision Assistant的图像处理是实用教程》
第二章 界面与菜单 67
第一节 启动欢迎界面 67
http://shixinhua.com/imganalyse/2013/01/278.html
第二节 功能界面 73
http://shixinhua.com/imganalyse/2013/01/280.html
Acquire Images采集图像界面 73
Browse Images浏览图像界面 77
Process Images处理图像界面 79
第三节 File文件菜单 86
http://shixinhua.com/imganalyse/2013/01/283.html
Open Image:打开图像 86
Open AVI File:打开AVI文件 87
Save Image:保存图像 87
New Script:新建脚本 91
Open Script:打开脚本 92
Save Script:保存脚本 92
Save Script As:脚本另存为 93
Acquire Image:采集图像 93
Browse Images:浏览图像 93
Process Images:处理图像 94
Print Image:打印图像 94
Preferences:优先参数选择 95
Exit:退出 97
第四节 Edit编辑菜单 97
http://shixinhua.com/imganalyse/2013/01/284.html
Edit Step:编辑步骤 97
Cut:剪切 97
Copy:复制 98
Paste:粘贴 98
Delete:删除 98
第五节 View查看菜单 98
http://shixinhua.com/imganalyse/2013/01/286.html
Zoom In:放大 99
Zoom Out:缩小 99
Zoom 1:1:原始图像 99
Zoom to Fit:适合窗口 99
第六节 Image图像菜单 99
http://shixinhua.com/imganalyse/2013/01/288.html
Histogram:直方图 101
Line Profile:线剖面图 101
Measure:测量 101
3D View:三维视图 101
Brightness:亮度 102
Set Coordinate System:设置坐标系 102
Image Mask:图像掩码 102
Geometry:几何 102
Image Buffer:图像缓存 102
Get Image:获取图像 102
Image Calibration:图像标定 102
Image Correction:图像修正 102
Overlay:覆盖 102
Run LabVIEW VI:运行LabVIEW VI 103
第七节 Color彩色菜单 103
http://shixinhua.com/imganalyse/2013/01/289.html
Color Operators:彩色运算 104
Color Plane Extraction:彩色平面抽取 104
Color Threshold:彩色阈值 104
Color Classification:彩色分类 105
Color Segmentation:彩色分段 105
Color Matching:彩色匹配 105
Color Location:彩色定位 105
Color Pattern Matching:彩色模式匹配 105
第八节 Grayscale灰度菜单 105
http://shixinhua.com/imganalyse/2013/01/291.html
Lookup Table:查找表 107
Filters:滤波 107
Gray Morphology:灰度形态学 107
Gray Morphological Reconstruction:灰度形态学重建 107
FFT Filter:快速傅立叶变换滤波 107
Threshold:阈值 107
Watershed Segmentation:分水岭分割 107
Operators:运算 107
Conversion:转换 107
Quantify:量化 108
Centroid:质心 108
Detect Texture Defects:检查纹理缺陷 108
第九节 Binary二值菜单 108
http://shixinhua.com/imganalyse/2013/01/293.html
Basic Morphology:基本形态学 109
Adv. Morphology:高级形态学 109
Binary Morphological Reconstruction:二值形态学重建 109
Particle Filter:粒子滤波 109
Binary Image Inversion:二值图像反转 110
Particle Analysis:粒子分析 110
Shape Matching:形状匹配 110
Circle Detection:圆检测 110
第十节 Machine Vision机器视觉菜单 110
http://shixinhua.com/imganalyse/2013/01/295.html
Edge Detector:边缘检测 111
Find Straight Edge:查找直边 112
Adv. Straight Edge:高级直边 112
Find Circular Edge:查找圆边 112
Max Clamp:最大卡尺 112
Clamp(Rake):卡尺(耙子) 112
Pattern Matching:模式匹配 112
Geometric Matching:几何匹配 112
Contour Analysis:轮廓分析 112
Shape Detection:形状检测 112
Golden Template Comparison:极品模板比较 113
Caliper:测径器、卡尺 113
第十一节 Identification识别菜单 113
http://shixinhua.com/imganalyse/2013/01/296.html
OCR/OCV:光学字符识别 114
Particle Classification:粒子分类 114
Barcode Reader:条码读取 114
2D Barcode Reader:二维条码读取 114
第十二节 Tools工具菜单 114
http://shixinhua.com/imganalyse/2013/02/297.html
Batch Processing:批量处理 114
Performance Meter:性能测量 120
View Measurements:查看测量 120
Create LabVIEW VI:创建LabVIEW VI代码 121
Create C Code:创建C代码 121
Create .NET Code:创建.NET代码 122
Activate Vision Assistant:激活视觉助手 123
第十三节 Help帮助菜单 124
http://shixinhua.com/imganalyse/2013/02/298.html
Show Context Help:显示上下文帮助 124
Online Help:在线帮助 125
Solution Wizard:解决问题向导 125
Patents:专利 125
About Vision Assistant:关于视觉助手 125
第三章 采集图像 126
第一节 Acquire Image采集图像 127
http://shixinhua.com/imganalyse/2013/02/299.html
第二节 Acquire Image(1394,GigE,or USB)采集图像(1394、千兆网、USB) 128
http://shixinhua.com/imganalyse/2013/02/301.html
Main选项卡 129
Attributes属性选项卡 138
第三节 Acquire Image(Smart Camera)从智能相机中采集图像 143
http://shixinhua.com/imganalyse/2013/02/302.html
第四节 Simulate Acquisition仿真采集 145
http://shixinhua.com/imganalyse/2013/02/304.html
第四章 浏览图像 150Wetzer wrote:
You can think of the purple "Image" Wire as a Pointer to the Buffer containing the actual Image data.
That's what I thought too, but why would it behave differently during execution highlighting? (sorry, I don't have IMAQ, just curious )
LabVIEW Champion . Do more with less code and in less time . -
Good Morning,
I want to perform grayscale morphological transformation on images saved in a folder. When I tried to execute the program I encountered the following error.
Error -1074396080 occurred at IMAQ Extract Single Color Plane.
Possible reason(s):
IMAQ Vision: Invalid image type.
Can anybody help me what is the cause of the error.
Thank you for your help.
Attachments:
template preparation.vi 73 KBThank you for your response.
I have attached the 2011 version of the program.
Attachments:
template preparation Folder.zip 17 KB -
How to use IMAQ extract color panel in a LabView file?
I want to change a color image into a greyscale image. Therefore I want to use the function IMAQ extract color panels but I don't know how to insert it in my LabView application.
Please, can anyone give me some advice ?!!!
Thx, BirgitBirgit,
If you want all of the color planes, you can use IMAQ ExtractColorPlanes. Allocate an 8-bit image for each of the color planes. Wire the original color image and each of the 8-bit images for the color planes on the left and bottom of the vi. The outputs on the right side will be the same images, and they will each contain the desired color plane. The input at the top of the vi controls which color planes are extracted (RGB, HSI, etc.) Grayscale will probably be the I plane in HSI.
If you just want a grayscale image, use IMAQ ExtractSingleColorPlane instead. Wire the color image to Image Src, and wire an 8-bit image to Image Dest. Select the color plane using the top input, and it will come out on the right side.
Bruce
Bruce Ammons
Ammons Engineering -
Make a Line Fit with Vision Assistant for a polynominal function?!
Hello
I do have following problem to solve: I do have a laser spot which draws a line (non linear) to a wall. For this line I need to know the (exact) mathematical
function. Therefore I can get an image of the line but I do not know how I can extract the mathematical function with a line fit for example. If I could "convert"
the line into points I would use the line fit function of LabView which should work without problem.
Is there a way to solve the problem with the vision assistant or..?
Thanks in advance
Solved!
Go to Solution.Hello,
by now I have learned that (almost) anything is possible. You can achieve this using Labview, Matlab, C++, etc... In any case, getting the coordinates of a single laser line (single laser line - you don't need to find correspondences, as opposed to multi-line projection) should be really simple. If you place an apropriate filter in front of the camera, it is even simpler!
If you want proof it can be done (and the description/procedute I used), check out the link in my signature and search for laser scanner posts (I think there is three of them, if I remember correctly). I have made a really cheap scanner (total cost was around 45 eur). The only problem is that it is not fully calibrated. If you want to make precise distance measurements, you need to calibrate it, for example using a body of known shape. There are quite a few calibration methods - search in papers online.
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." -
Vision assistant in a while loop
Hello gentlemans, i'm quite new to LabView and Vision assistant. My goal is to detect a car plate from a color image. I succesfully find the ROI by using the two blue rectangles at the edge of italian's car plates, and it works. But then I have to OCR the actual plate, I can do it with success but some pictures require a certain Threshold, others another... So I though, i can run the Vision assistant into a while loop to try different thresholds, when I got a 'valid' plate (7 digits) I simply quit the loop. The parameters are defined by clusters, but it looks like is using always the FIRST value, regardless of the changing threshold. index goes from 0 to 20, and my intention is to have the threshold ranging from 0..100, 0..105, 0..110 and so on. Can you spot something wrong in the attached VI image?? Thanks a lot for any help! Mauro Cucco
Attachments:
vi_ocr.png 31 KBHi Octopus
I belive that this problem originates in that the Vision Assistant handles the images references.
In normal LabVIEW programming every time you have a wire branch or a SubVI new copies of the data is created. For images this is not the case because an image often consume a lot of space in the memory. So for an Image LabVIEW edits the image in the memory instead of creating a copy.
In this case your algorithm works the first time, but then the second time it will try to do the OCR on the last result of the OCR rather than the original image.
To avoid this you need to use the function IMAQ copy, to create a copy of the original image before sending it to the OCR function. See below:
Best Regards
Anders Rohde
Applications Engineer
National Instruments Denmark -
How do you track a moving object using Labview and Vision Assistant
I am using Vision and Labview to create a program that tracks and follow a moving object using a high end camera. Basically what it does is it detects a foreign object and locks on to it and follows it where ever it goes in a control sized room.
I have no idea how to do this. Please help. Or is there an available example.
Thanks.Hello,
It sounds like you want to look into a Vision technique called Pattern Matching. Using our Vision tools, you can look for a image, called a template, within another image. Vision will scan over the entire image of interest trying to see if there are any matches with the template. It will return the number of matches and their coordinates within the image of interest. You would take a picture of the object and use it as the template to search for. Then, take a picture of the entire room and use pattern matching to determine at what coordinates that template is found in the picture. Doing this multiple times, you can track the movement of the object as it moves throughout the room. If you have a motion system that will have to move the camera for you, it will complicate matters very much, but would still be possible to do. You would have to have a feedback loop that, depending on where the object is located, adjusts the angle of the camera appropriately.
There are a number of different examples a that perform pattern matching. There are three available in the example finder. In LabVIEW, navigate to "Help » Find Examples". On the "Browse" tab, browse according to "Directory Structure". Navigate to "Vision » 2. Functions". There are examples for "Pattern Matching", "Color Pattern Matching", and "Geometric Matching". There are also dozens of pattern matching documents and example programs on our website. From the homepage at www.ni.com, you can search in the top-right corner the entire site for the keywords, "pattern matching".
If you have Vision Assistant, you can use this to set up the pattern matching sequence. When it is complete and customized to your liking, you can convert that into LabVIEW code by navigating to "Tools » Create LabVIEW VI..." This is probably the easiest way to customize any type of vision application in general.
I hope this helps you get started. Take care and good luck!
Regards,Aaron B.
Applications Engineering
National Instruments -
Vision assistant 2009 fluorescence
Hello, I've just installed Vision Assistant 2009, and would like to ask how else can I use it to analyse fluorescence images (for example fluorescently labeled beads) besides the functions taught in the tutorial?
Those in the tutorial only highlighted treshold in grayscale and a few others, how do I do a color intensity analysis for example?
The tutorial also did not provide the instructions on using the "color" tab and other functions which I assume is useful in trying to analyse fluorescence.
Do advise, thank you!I don't think there's tutorial on every function available, but you can refer to Start>>All Programs>>National Instruments>>Vision Assistant 2009>>Vision Assistant Help on how to use these functions.
-
Use a web browser as the source for the vision assistant
I want to access an ip camera over the internet and then use its video feed to do some processing with the vision assistant. I was wondering if someone could tell me if this is possible and how can it be done. what I have so far is an application that works with local cameras and I also have an example of a web broser in labview. I thought I could use the web browser and use a local variable from the browser in order to get the image, but this can't be wired to the grab or snap, because its not an image, so can someone please tell me how to convert the browser into a video feed, in order for me to use it in my application.
Crop the image out of the print screen. I imagine your screen will be a much larger resolution then the camer, and will only take up a portion of your browser window.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Images in Vision Assistant are distorted from a FLIR thermo camera
I'm trying to view my FLIR A315 in Vision Assistant and MAX (not at the same time), but the images keep coming up distorted. I can tell there is data being sent, because the histogram shows info and if I mess around with the Attributes I can clear the image up some but it never get as clear as FLIR software. I'm sure I'm missing something simple but this post seemed a good place to start. Thanks
Attachments:
Image in Vision Assistant.png 81 KBHi Recordpro,
It could be your pixel format settings. Open Measurement and Automation Explorer and select you camera. Then click the Acquisition Attributes tab at the bottom and change your pixel format. If that does not work here are some good documents on GigE cameras.
Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part I
http://www.ni.com/white-paper/5651/en
Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part II
http://www.ni.com/white-paper/5750/en
Troubleshooting GigE Vision Cameras
http://www.ni.com/white-paper/5846/en
Tim O
Applications Engineer
National Instruments -
I use the NI Vision Assistant a lot. Usually I ask it to create a vi automatically from the script. However, the resulting vi contains several 'IVA' vi's that are completely undocumented (from what I can see).
Where can I get more info on these? Examples of these are IVA Grayfilters - Nth order.vi and IVA Store Particles Results.vi (two of many such vi's) . They look like very useful and interesting functions but what exactly they do I can only guess.
Any ideas where I can get information on these functions.I really appreciate your offer to help, however, it would probably be better for me in the long run if I could get this info from the official help on these functions?
But as an example, currently I am wondering what does IVA store particle results.vi do? It is called after IMAQ particle analysis.vi but just seems to be wasting precious processor resources. When do I need to include this (as is done by default by vision assistant) and when can I cut it out? It must have some purpose but who knows what this might be?
Thanks. -
Modifying VI - Vision Assistant
I have images that consist of an area of particles and an aera of no particles. I am trying to fit a circle to the edge, between the regions where there are and are not particles. I want to use the find edge tool, and I want to find the pixel where this transistion takes place for every row of pixels. For example, I want to draw a horizontal line that will give me the location of the edge then move down one row and repeat. I have tried using the find circle edge, but since I am trying to fit a circel to an edge that isn't well defined, I need a lot more data points to average over. I figure there is a way to modify the VI to perform the process I described above. Any help would be much appreciated. I have attached the images to give you a better idea of what I'm trying to do.
Attachments:
half circle.JPG 554 KBHi Windom,
If the find circle edge is not working for you, I would suggest thresholding the image. Then you could use the morphology functions (such as Close, Fill Holes, and Erode) to further manipulate the image to get a stronger edge between the areas of particles and not particles.
You can use a For Loop (initialized to start looking at the top of picture) and have it iterate vertically down the picture with the Edge Detector. You can do that by changing the ROI Descriptor for the line you are detecting edges with, and then you can read the Edge Information out of the VI. These all need to be checked in the "Select Controls" menu, which is found at the bottom right of the Vision Assistant window.
I hope this helps, let me know if you need any further clarification.
Best Regards,
Nathan B
Applications Engineer
National Instruments
Attachments:
SelectROI.JPG 12 KB
Edge Info.JPG 10 KB
SelectControls.JPG 14 KB -
Labview Vision Assistant Histogramm Problem
Good Morning,
i sadly with the Vision Package from Labview. I want to load a picture and interpretation a detail of the picture with black, white and grayvalve. This can i make with the Vision Assistant feature Histogramm. When i build it (the VI with Vision Assistant) comes nothing to the output Histogramm. I have checked the output line Histogramm, but nothing goes out of this.What are my failure?
Thanks a Lot
german translation:
Hallo zusammen,
ich bin leider noch nicht richtig mit dem Vision Paket vertraut. Ich möchte die Schwarz, Weiß und Grauwerte eines Bildausschnittes auslesen und diese auswerten können. Dank des Vision Assistant, kann ich dies per Mausklicks erzeugen, jedoch erhalte ich am Ende des Vis keine Daten. Selbst wenn ich die Quelle verbinde und ein Anzeigeelement hinzufüge, kommt hinten nichts raus. Was ist mein Fehler?
Vielen Dank
-motecpam
Labview Vision 2011 Servicepack 1
with Vision Development Modul
Attachments:
Screenshot_VI.jpg 230 KB
Screenshot_Vision_Assistant.jpg 313 KBHallo Tropper,
vielen Dank erstmal für die Antwort.
Leider erhalte ich dennoch keine Ausgabe am Histogramm.
Das Histogramm wird mir leer angezeigt.
Ich habe es so erstellt, wie von dir gezeigt.
Attachments:
Unbenannt.jpg 117 KB
Maybe you are looking for
-
I received what appears to be a reconditioned iPod Touch 4th for Christmas. How do I change the Apple ID on the device to my ID so I can use my iTunes account? Thanks for any help/
-
How to know previous navigation item during runtime in Forms
Hi, How can one know the previous navigation item in oracle forms. Scenario: Navigation: US Super HRMS Manager --> People --> Enter and Maintain. On the Find Person window --> Query a Person On the People Window, there is an Assignment Button. When c
-
Business Partner in SRM Invoice
Hi, When creating an invoice in SRM-IMS, the business partner "Requester" is not getting copied from the SRM purchase order to the invoice. This is very important for us to trigger the execption mail for missing goods receipts. Please advise on the s
-
Hi, In VPN n/w i have DC & DR. Both DC & DR r geographically separate. Server IP pool used both in DC & DR is different. Need to configure MPLS VPN in such way that when DC is active spoke should not able to access DR. when DC becomes unvailable spok
-
I have a MOSS 2007 Installation (SQL 2005) on a single box running Windows Server 2003. Since Windows 2003 is coming end of life I have to move this installation on a Windows 2008 R2 box Please advice how should I proceed with seamless migration and