Several preprocessing steps

Hi all

I'm new to the Vision of LabVIEW module and I am trying to create an application that locates the iris of the eye of a given image of an eye.

My algorithm would work as follows:

(1) fill the holes in the image to get rid of specular light by reversing the image, applying the Imaq FillHoles function and inversion then return of the image.

(2) binarize the image by applying a threshold calculated in advance in this regard.

(3) do a lot other calculations that should work perfectly after I get my image pre-processed in the previous two steps.

My problem is that when trying different solutions for the pretreatment portion I couldn't connect two steps, two functions of vision, two nodes of different image processing library somehow, I tried. The most common problem is that after the first step is done correctly the second provides a totally black image as a result. I think that the problem should be around the node IMAQ ExtractSingleColorPlane, which should cause a few misfits datatype or something like that, but I can't deduct how it should be changed or what another stage of conversion of image must be used in order to achieve what I want.

I am attaching the VI as it is in its current state for reference. The upper part with the number of rows and columns is unimportant, that works very well. The lower part with the knots of vision makes me the real problem. If you are simply trying to run you will see that after the first step, the result seems fine, but then none of the images that results after each step give significant results.

Can anyone help me with an explanation where I hurt myself and how exactly this should be done?

Much appreciated!

Follow the steps in reverse order.  First get a binary image, then fill the holes if you need to.

If you use the holes to fill on a grayscale image, it will fill all that is black.  The function of filling holes is for binary images.

Bruce

Tags: NI Hardware

Similar Questions

  • How can I take several consecutive steps of a frequency meter and keep the previous measure?

    I'm sorry, I'm very new to view lab and I am taking several consecutive steps of a frequency counter. I place the sub measures VI and the indicator with a loop and then set N to the number of iterations. The problem is that I don't get a box in my display board when I need all the previous measures taken for this iteration. Thanks for your time.

    Your data inside the loop to an object outside the loop of the wire. Right-click on the tunnel and turn on indexing. You will have a 2D array (if your data was in 1 d) where each row (row or column, you will need to understand) is the result of the iteration.

    You can separate the 2D table by using the Index of table vi.

  • BING is always popping up when I specify a different search engine. There are several more steps to do what I want.

    I tried to delete BING listed Google as my first choice for a search. How can I remove BING in my life, my computer?

    Bing can not be removed from Safari > Preferences > General

    Preferences of Safari is maybe damaged.

    Quit Safari, and then open a Finder window. In the Finder menu bar, click go > go to folder

    Type or copy paste the following text:

    ~/Library/preferences/com. Apple.Safari.plist

    Click OK, and then move the com.apple.Safari.plist file to the trash.

    Relaunch Safari then go to Safari > Preferences > general and select Google in the default search engine of pop-up menu.

  • Boot Camp Windows 7 partition can preprocess

    Hello

    I just got a new MacBook Pro 13 "(2,66 ghz), ran the wizard boot camp to install Windows 7 Professional 64-bit, then used the disk utility to create a FAT32 partition that is easily accessible by Windows and Mac." I did it by resizing of the Mac OS X partition, and then create a new FAT32 partition using the new unallocated space.

    Everything worked so far, and I was able to start easily in Windows 7 and OS X.

    However, when it came to VMWare Fusion, I couldn't boot into Boot Camp partition even for the first time. After hitting the "Run Windows of your Boot Camp partition" shortcut, VMWare is trying to preprocess for awhile before hitting this error:

    "Boot Camp parition preprocessing failed. You may not be able to start your Boot Camp partition in a virtual machine. »

    The virtual machine appears in the menu after it, but hit the button "Run" results in this error message:

    "Could not open the disk" / Users/Daniel/Library/Application Support/VMware Fusion/Virtual Machines/Boot Camp/Boot Camo.bmwarevm/Boot Camp.cmdk' or one of the snapshot disks it depends on. "." Reason: resource busy. »

    -


    I chased the forums and the closest, I learned to my situation is as follows:

    http://communities.VMware.com/message/1525899

    I think this extra FAT32 partition might be the reason why VMWare has questions because I read about how the number of the disk could change when I added this extra partition. So I tried this step (http://communities.vmware.com/message/1423849#1423849) of the thread above but can't find not the entry of the disk/dev/or anything that resembles this entry in the plist (Yes, I properly open the .plist file using the xCode property list editor).

    Is there anyway that I might be able to solve this problem by having perhaps VMWare to find the right partition?

    Thank you very much!

    I chased the forums and the closest, I learned to my situation is as follows:

    http://communities.VMware.com/message/1525899


    I suspect that this extra FAT32 partition might be the reason why VMWare has questions because I read about how the number of the disk could change when I added this extra partition. Then I tried this step (http://communities.vmware.com/message/1423849#1423849) of the thread above, but did not find the entrance to the disk/dev/or anything that resembles this entry in the plist (Yes, I open the .plist file correctly using the xCode property list editor).

    The problem with multiple entries in Boot Camp in the library has been resolved in Fusion 3.1. However, even in previous versions, it was only a problem on systems with several hard drives. So, should not be a problem for you.

    The two errors that you get ("preprocessing failed" and "resource busy") are likely related - of the preprocessing step probably fails if the partitions are occupied. This happens if there is a file that is currently open on one of the partitions. Try to disassemble the two partitions using disk utility before you start the merge.

    Normally this shouldn't be necessary, but it is possible that disk utility the request disassemble a more energetic partitions. I would be interested to know if the problem happens again on subsequent starts of the merger with the mounted partitions.

    I also recommend deleting the entry of Boot Camp VM library merger and recreate from scratch by clicking on "Run Windows of your Boot Camp partition" on the home screen of the library. It will pass through the stage of pretreatment again. The pre-treatment is required to correctly detect the guest OS type, the drivers for the virtual hardware configuration and the installation of the VMware Tools.

    Windows 7 is much more user-friendly for the hardware changes, so it is possible to start the virtual machine, even without pretreatment (previous versions of Windows would get a blue screen because they could not find the boot device). If you want to use a VM Boot Camp without the preprocessing step, be sure to set the type of operating system invited to the correct version (Windows 7 x 64 for you) and manually install VMware Tools.

  • How to share an action to several test USE?

    Hello

    In fact, I don't know how to define the topic exactly.

    My request is as follows:

    For example, I have a signal generator and four DUT.

    Signal diagram 1 WE-> batch (4 USE test...) -> model OFF Signal 1, Signal model 2 WE-> batch (4 USE test...)... then on...

    I am stuck how to set the action in the teststand and make once instead of 4 times.

    Something similar for the recall of ProcessSetup, pre-batch and PreUUTLoop,

    but I wonder if there is a way to call an action once in the multiple UUT in the MainSequence.

    Could someone give me any suggestions? Thank you very much!

    Hey William,.

    You will probably want to use the option "only a thread" of a synchronization of the batch section to do this. Looks like you already use the Batch process template, so it should be relatively easy to implement. If it's one step, you can go to the sync step settings tab and change the setting from batch synchronization . If several consecutive steps, you can use the modes enter the sections synchronised and synchronized output of the step batch synchronization type.

    In addition, we have an example that demonstrates this feature. You can find it at \Examples\MultiUUT\BatchUUT.seq. If you look at the stage set room temperature , you will see that it is configured in this way.

  • Redirect to URL processing conditional step problems

    So I'll try to set up a redirect to the URL processing step that will redirect only some single select drop-down values.

    Example of menu drop-down

    Apples

    Grapes

    Oranges

    Grapefruit

    Bananas

    Plums

    In the "redirect to the URL" I have it being directed toward my URL, then in "this treatment step is executed" only if they following the condition are met:

    Value of result is = apples or grapes

    But, this doesn't seem to work. I can make it work with fair say apples, but really, I don't want to create several processing steps in each form that I have to do.

    I think it should be something with Boolean and wildcard characters, but can't seem to find the combination. Has anyone ever used this?

    John

    Hi John,.

    You can actually use a choice list for all fly out of a field. So if you take your example of fruit, you would create a list choose where your fruits would be your option names, then the URL you want that each fruit to redirect to would be the value of your Option.

    Then, on your processing step, choose 'Form field' for the Source Type, select the field in your form that contains the drop to the bottom of the fruit, then check the 'Search' box and choose the list you created:

    This will allow you to store all your possible values on the menu drop-down with what URL they want. Make sure that the URL in your list of selection have been completed (including the "http://www").

    I hope this helps!

    Kim

  • Analysis of the order when there is a significant shift of DC signal

    Thanks for reading this. I use the Toolkit NI LabVIEW Order Analysis for direct analysis of signals of pledge of deformation of an attachment to a car engine. My goal is to acquire data of a part of the calibrated strain connected to an engine during the rampup and identify the controls in the signal of the strain. I am not able to understand a problem I see with my results in the power of order spectrum.

    I measure the signals of pledge of strain during the preparations for engine using the module 9235 cDAQ (1000 to 6000 RPM in 15 seconds). I also acquire the tachometer using the module NOR-9402 (counter). Then I converted the signals of the strain at the same angle signals and made the order power spectrum.

    Please order power spectrum resulting Fig1 shows. What I find that is the DC offset in the signal of strain presents itself as a high amplitude (red or green) peaks in the power spectrum of order (see Fig 1) around the order of 0. Because of these enormous peaks around order 0, the peaks of the order of a real interest around 2 or 3 command (blue or purple) are difficult to discern in the graph.

    The DC offset clearly shows the chart of strain vs RPM (RPM is a linear function of time), if necessary, it is identical to the strain vs time. The white line in figure 2 corresponds to the DC offset. In this example, the CC offset is constant during the rampup rpm, but more often, the party calibrated strain of experiences both change static and forced lengthening cyclic as in Fig. 3. Here the sudden part increases the deformation in traction, with cyclic constraint superimposed on top of that.

    My questions are:

    Am I missing a key here in preprocessing step?

    -I need a high pass filter to remove DC offset?

    Subtract the average value of the signal from the time signal based before sending to the treatment?

    How does a handle signals that have a variable static elongation a cyclical signal above the static signal? This appears to me a common scenario in the measures of constraint because ESA undergoes two different static and dynamic constraints in a motor boat.

    Thanks for your comments and advice!

    You have several choices, depending on what you want to do.

    If what you want is a nice parcel of land, and the DC signal not enough to affect your 1st order, then simply set the component continues to 0 once you analyze varies.

    Presto - instant removal of DC.  It is perfectly legitimate, as long as the domain controller is not wandering too.  Mathematically, it is exactly the same as the withdrawal DC before analyzing.  (an inverse THAT FFT of this result and you will get the signal without DC, if you don't believe me).

    OR

    You can do as Bob has suggested and take the average.  If your length of block is short compared with the rate of change of the real continuous component, it is fine.

    OR

    You can remove the trend by interpolation.  For example, for a block of 1024-pt, find the way to 100 points around (on each side of) the beginning of your block.  Find the way to 100 points around (on each side of) the end of your block.  Find an equation (Y = mX + B) to describe the trendline it and use this equation to subtract a different DC value for each point.

    OR

    You can remove the trend extrapolation and interpolation.  For example, for a residence of 1024 pt. find the average of the first 100 points and the last 100 points and assign these values X = 50 and X = 973 (1023-50).  Find an equation (Y = mX + B) to describe the trendline it and use this equation to subtract a different DC value for each point.  You need to face the fact that X = 0 starts BEFORE your trend line at X = 50, but that is basic algebra.

    Remove trendline technique is more accurate and necessary if the domain controller changes siugnificantly during your block.

  • Text editor ' Save as... '. "broken - replaces the original file as well

    ' Save as... '. "removed some sort items of menu standards a long time ago, but I used this http://osxdaily.com/2012/08/27/enable-save-as-os-x-mountain-lion/ to restore a just as long. This addition of shortcut recently stopped working properly. Creates the new file, it also replaces the original file. Good OOP...

    I removed the keyboard shortcut and discovered that if I open the file menu, hold the Option key to activate twice in save Sub... than that STILL not work correctly. It seems something within the modified OS and buggered how to save under... anything works.

    Does anyone know how to save under... work again? Please do not respond if your answer is to use two copies. This isn't an answer as duplicate is a replacement of several wrong step of the simple and easy as... backup function.

    OS X El Capitan: save documents

  • New update iOS 9.3.4 - no sound. Help

    I downloaded the new update IOS this morning - everything went well.

    Since then when I receive SMS, or email, or when I try to watch videos - no sound.

    I checked all the settings and they seem to be the same as before.

    When someone calls me, the phone rings as usual, but when I answer, no sound can be heard.

    Ring tone settings, the same thing happens again when I test - no sound, yet its on the ringtone.

    So confused.

    Hi MelissaEdwards,

    Thanks for checking out the communities Support from Apple! I understand that you are having problems with your sound on your iPhone and I am pleased to offer you some suggestions to help you.

    I recommend to take a look at all the steps listed in the article below. There are several troubleshooting steps here that should be your new sound work in no time.

    If you hear no sound or distorted sound from your iPhone, iPad or iPod touch speaker

    See you soon!

  • Why do so many problems SHOCKWAVE... "ceased to", etc..

    Often, several times a week, I get the msg of error Shockwave that she stopped and I want to 'continue' or 'stop' Shaockwave. I keep up to date by installing ALL the updates I receive. I even checked, repeated, when I get the error msg to make sure that I have not been delayed. Whassup! ???

    I recommend reinstalling the plugin or try the version of Adobe Flash ESR.
    There are also several troubleshooting steps:

  • When I open a Web page that shows adope pulgin broke down.

    A few times when I open a Web page requiring adope flash player to display images or videos. Some time ago a message showing that pulgin adope crashed and reload the page after reloading same message shows. Why is this happening?

    Don't know if you saw this article as part of the validation, but it lists several troubleshooting steps you can try: Adobe Flash plugin has crashed - avoid that it happen.

  • Even after removing mimeTypes.rdf, download of song can't?

    When I try to download old Mozilla/Chrome songs instead of ask option SAVE, a new black screen appears and it the song is played. Previously, I used to download without any problem.

    I tried to reset the configuration of Mozilla and also removing mimeTypes.rdf file as shown here.
    (Enter about: config in the address bar.)

       Find the preference browser.download.pluginOverrideTypes and, if it is present, right-click on it and select reset.
       Find the preference plugin.disable_full_page_plugin_for_types and, if it is present, right-click on it and select reset.
       Open the profile folder. (The profile folder is hidden by default in Windows 7/Vista/XP/2000 and Linux; read this for help finding it).
       Note: In Firefox 3.6 and above you can open the profile folder from the Firefox menu, via "Help -> Troubleshooting Information".
       Completely close your Mozilla browser.
       Delete (or rename) the file mimeTypes.rdf. )
    

    Hi Tulip.
    I changed the product because it seems that you take on the Firefox for the desktop browser. If this is incorrect please post back with a correction.

    I understand also that you download songs and instead of economy dialogue, you are taken to a black page to play the song. Please see if this occurs in Safe Mode, as well when you troubeshoot no matter what default programs if you are using Windows.
    The problems of Firefox in Mode safe

    Please try this:

    1. Right-click on the file sound/link
    2. Select, save Audio as
    3. Select the download file in and click Save.

    Please see also this for several troubleshooting steps. What to do if you can not download or save files

  • My touchscreen is unresponsive after ios 9.3.2 and apple support isn't helpful!

    My 5s, 16 GB iPhone was working fine until the 9.3 ios updated. After that, I started to see the shift in my touch screen. After the 9.3.1 it began to increase and in ios 9.3.2 it became worse. Two days before my touch screen froze and I couldn't do anything. I tried 'restart', nothing has worked. I tried to reset my touch screen started working fine again. I've restored my itunes backup and screen frozen again.

    From there, I tried resetting twice but nothing works the lock screen works sometimes and then touch screen freezes after that the phone is unlocked. The "home" button and the power button works and responds very well.

    I contacted Apple imagine Service Center, but they have not even check it with the technicians. They saw my phone simply go outside, asked if it is in warranty, and when I said 'NO', they said we must change the touchscreen with a value of 12 000 rupees. I asked them to downgrade from iOS, but they told me that they do the downgrade at all.

    For updating a buggy software, I should pay 12 000 rupees to continue using my mobile. I called the phone number of Apple, but the recorded voice put me on hold for 20 minutes before I finished the call in frustration.

    Don't know what to do! Wasted my money for a phone expensive buggy! Advice in this regard are very much appreciated, thank you.

    Where did you buy this phone? It can be repaired in the country where you purchased it. No wonder if they refused a maintenance operation if it was bought abroad. iPhones don't have international warranty. Updates don't cause physical problems. Most likely your device has a hardware problem. In any case, you can try several troubleshooting steps (restore to factory as the last hope)

    Try resetting your device. This will not erase your data stored on that device.

    • Press and hold the sleep/wake button
    • Press and hold the Home button
    • Press and hold both buttons until the display turns off and on again with the Apple logo on the subject.

    Alternatively, you can go to settings - general - reset - Reset all settings

    If that doesn't work, restore your device to factory settings. Please note that this will delete the data on your device.

    Take a look this Apple Support article: use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • Firefox won't open most of the sites.

    I don't know why this happened, but I can't open the majority of websites on Firefox or Chrome. Internet Explorer seems to work very well.

    What I tried:
    1. scanned for malware using Malwarebytes and other 2 recommended - no malware found.
    2 delete the browsing history and cookies
    3 removed and reinstalled Firefox
    4 deleted files cookie of SQLite

    I can't even Google to come. Can someone help me understand this?
    Thank you!!

    Hey HelpDavid,

    Guigs, since the Office of help here. I'm happy to help you. Please ensure that the network configurations for browsers that do not work. Here are some references that can be used for several troubleshooting steps.

    If you have any further questions or specific error messages, we are happy to help you.

  • Incoming emails in the wrong mailbox?

    After using airport 2.6 as my default e-mail for a while, I decided to go back to the station.

    Since then, all my incoming emails go to the mailbox to the Archive and spam.  I have 4 email addresses: 1 iCloud, 1 Gmail and 2 with my service provider

    Hi oldcdr,

    I understand that you are having problems with your email accounts on your Mac, and you feel that this may be due to a migration of another service. Here is an article that links to several troubleshooting steps that may help you in this regard:

    Address postal (El Capitan): Mail troubleshooting

    https://support.Apple.com/kb/PH22323

    Due to the nature of the issue you describe, I suggest that you try to remove your e-mail accounts, and then adding them back to the e-mail program by using the correct credentials and access information. Thanks for being a part of the communities of Apple Support!

Maybe you are looking for