I have a thresholded image and i need to find the real area of the black region

i have a thresholded image and i need to find the real area of the black region.iam new to lab view.please guide me.i have attached the image..
Solved!
Go to Solution.
Attachments:
final.jpg ‏5 KB

Hello,
You have calculated the number of black pixels using a histogram, right? This is the simple part.
this is how i would approach the problem:
OPTION 1: calculate the linear magnification of your system, using the equation M = f/(f-d) = hi/ho. f is the focal lenght [mm] and d is the distance of the object from the lense [mm]. You can calculate the magnification by placing an object of known height (ho) at the distance d, and calculate the illuminated pixels (hi). Then multiply the pixels with the physical pixel size in mm. When magnification is know, you can always calculate the object size, based on the number of illuminated pixels. But this is only for the specified distance d. If the distance changes, the magnification changes also. If your area covers let's say 50 pixels, arrange it in 50 columns and 1 row. Calculate the object size using first 50 pixels and second using 1 pixel (if the pixel size in different in both directions, take this into account when calculating). Then multiply the calculated object sizes to get the area.
OPTION 2: calibrate the camera system in order to obtain the fx and fy [pix]. Calibration is really simple - use the NI Calibration training interface. Calculate the actual focal lenght in both directions:
fY[mm] = sensor_height[mm] * fy[pix]/sensor_height[pix]
fX[mm] = sensor_width[mm] * fx[pix]/sensor_width[pix]
Let's say that the area of the pixels on your image is Ap. Let's also say that we "arrange" it in Ap columns and 1 row. Calculate the actual object size in X direction:
OX[mm] = Ap * Pw[mm] * d[mm]/fX[mm]
and in the Y direction:
OY[mm] = 1 * Ph[mm] * d[mm]/fY[mm]
where Pw is the element sensor element size in horizontal and Ph in vertical direction [pix].
Then calculate the real-world area by OX*OY [mm^2].
You also need the distance d here - the previous post describes how to calculate this.
Also, hopefully, someone with more experience could comment on what i wrote above. Maybe there is a simpler solution? I am also learning stuff as i go, so any comment would be appreciated.
Hope this helps you get started.
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."

Similar Messages

  • I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this

    I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this mac

    Instead of getting a wireless card for the Mac Pro, you might want to consider getting an 802.11ac wireless bridge device that would enable you to connect more than one device to it by Ethernet cable and to eventually take advantage of the faster 802.11ac wireless standard.

  • HT201250 I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?

    Use Migration Assistant on your new Mac:
    Click Continue:
    On the next screen, choose your Time Machine backup disk.
    Don't bother to migrate Applications unless you know they will work on your new Mac. For example, PowerPC applications won't work. Just migrate your user account which will copy all your photos, music, movies, and other documents.
    Note: you will not be able to migrate the information to same account in which you are already logged in. Migration Assistant will tell you that and recommend what to do. It can migrate the information to a new account, but you will have to give it a name you might want to change later. One way around this is to create a temporary account, log in to it, and run Migration Assistant which will replace your normal account. Then, log out of the temporary account, log in to your usual one, verify everyting works as you expect, and delete the temporary one.
    All this can be avoided when you set up a brand new Mac by running Setup Assistant which essentially does the same thing to create your new account, but most people are too excited to do that and elect to migrate later.

  • Hi, I have an EliteBook 8740W and now I cant find the inbuilt webcam anymore. It´s gone!

    Hi, I have an EliteBook 8740W and now I cant find the inbuilt webcam anymore. It´s gone!
    HP:s software for the webcam dont find any cam and in the list with all hardware its no longer exist. The USB-line for the cam in gone. It worked some weeks ago but no it has disappeared.
    Do anyone have any tip for a solution?
    Thanks!
    /Hasse, Sweden

    If it is not in Device manager, then something has failed with the cam, some report camera cables coming loose or getting damaged inside the notebook, others report they just failed.
    Your Service Guide
    If it us under warranty, contact HP
    USA
    http://welcome.hp.com/country/us/en/contact_us.html
    Everywhere else
    http://welcome.hp.com/country/us/en/wwcontact_us.html

  • My pavilion g6 does not have a number pad and i need to use the + and - that come with it?

    I have a pavilion g6 and it doesnt have a number pad it also doesnt have any sort of num lock light but i really need to be able to use the + and - keys that come with the num pad as the other ones that are just below the f11 and f12 keys do not work for what i need and i would therefore like to know if there is any way to press a number pad plus and minus on my keyboard

    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • I have a samsung s4 and i need help downloading the photos to my macpro, i have a samsung s4 and i need help downloading the photos to my Mac Pro

    i have a samsung s4 and having trouble downloawding my photos to my macpro

    If you're talking about an iPhone, iPad, or iPod Touch, a good place to start would be in the Settings App.  Open Settings, go to General, then Reset down at the very bottom.  Choose Reset Home Screen Layout there.  The apps are obviously installed, so they likely just have the icons hidden.
    If that doesn't work, or you're using a Mac, please let us know your device and operating system version like Seventy One asked.
    Good luck!

  • TS3408 I have a MacBook Air and suddenly Safari cannot find the Facebook server. I am out of my home country but no problem with my iPhone. Laptop was no problem either until now. Any recommendation?

    I have a Mac Air and suddenly Safari can't find the Facebook server. I am out of my home countryt but no problem with my iPhone's Safari. Any recommendations? I would like to put some pictures on Facebook from iPhoto. Thanks.

    you cannot keep up with all of the interfaces 'cause they do not even allow you to use the older os.
    You should be able to upgrade to Mountain Lion via the App Store applicaiton on your Macbook Air.   You do not have to upgrade, but it should be an option.
    I can't even get an ichat acct 'cause, help?
    iChat can use AOL Instant Messenger accounts (they are free), iChat can use Google Talk (Jabber) accounts (actually any Jabber based chat service).   And if you upgrade to Mountain Lion, you shoul be able to get an Apple iCloud account that can be used with the Messages replacement for iChat (think of Messages as being iChat renamed, with additional features).
    Oh and my battery very close to a year after buying it, which is one of the reasons I was so called to it, the battery life.  Well, having it stripped down to minimal usage, while working on nothing crazy, I could be cordless from nevver reahing 100% anymore, just under that, but gets to 20 percent in about 3 hours. No audio, no video, light low, it bothers me anyway.  Please, this is also a huge problem.
    Every battery today, has a limited number of recharges (not just Apple's).   Depending on how many times it has been recharged, will affect how much power it will eventually hold. <http://www.apple.com/batteries/>
    I know that generally after about 2 years of use (my use, not yours) I find that my batteries have very little life left in them (I frequently have my devices plugged in, so running fully on batteries only is most likely less than yours).
    You can have your battery replaced by Apple (for a fee) or by an authorized Apple repair facility.

  • I have an Epson R2400 and I can not find the driver for borderless printing

    I have two Epson printers; I added the first, a R200 using the Printer Utility and in the add printer screen it asked me what page setup I wanted. I chose ALL and it gives me the ability to print borderless prints. I then added the R2400 using he Printer Utility but the "page setup" is grayed out and I do not have a borderless print option o this printer.
    I have tried deleting the R2400 from the list of printers and adding it again without success.
    I am using the drivers that came on the CD-ROM with the printer.
    Has anyone had a similar experience with the R2400 borderless print issue and might anyone have an answer?
    Thank you.

    Hi: Please click on the device in the device manager. Then click on the details tab. Post the top string of characters you see. Those will identify the type and model of the missing device and I can send you the link to the drivers. It is either your AMT driver, TPM driver or IMEI driver. In the meantime, install the chipset driver and reboot if you have not done so already. http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=12454&prodSeriesId=5037900&prodNameId=5037902&swEnvOID=1093&swLang=13&mode=2&taskId=135&swItem=vc-88640-1 Paul

  • I have 50gb of movies and I can't find the files

    I made a video in Adobe After Effects and the rendered video is 30gb, but when I look at my storage it says there is 80gb. I have no other movies and I already checked using finers by size option and using grand perspective, but nothing comes up. I can't find the other files, can someone help me?

    1. Reset PRAM.
        http://support.apple.com/kb/PH4405
    2. Re-index Macintosh HD.
       System Preferences > Spotlight > Privacy
       http://support.apple.com/kb/ht2409
    3. Reinstall OS X.
        https://discussions.apple.com/thread/6197652?tstart=0

  • HT4623 I have an Ipad 2 and I need to update the the system.  It does not have the software update in the settings.

    I do not have the update options in the settings.

    Assuming you have iOS 4.3 as your tagline suggests. You'll need to connect your iPad to a Computer running iTuines (Can be a Mac or a Pc doesn't matter) and follow the update prompts.
    You'll probably want to back up the iPad before updating though.
    In  the article you came from, scroll down to the section titled: Update your device using iTunes

  • I have a windows computer and I can't find the shared folder in iTunes. Help please!

    Hi there,
    I have been trying to transfer music between two windows computers by using home sharing. I have turned on home share on both computers and am logged into the same apple IDs on both but I cant figure out how to access the shared music.
    Please help!

    diesel vdub wrote:
    Stop trying to use Home Sharing, it rarely works based on postings here.
    and stop using iPhones, iPads, iTunes, any Mac, AirPort devices & Pods because there are ONLY problems with them and they rarely work correctly based on the majority of postings here...

  • I have a iphone 4 and i can not find the sims card slot what should i do?

    is it invisble?

    There is no SIM slot in a CDMA iPhone 4. The GSM version has a SIM slot.

  • In testing 9 and X, "Compare Docs" we have a critical issue and really need help!

    For years we have used Acrobat 7 to do PDF compares and we love it!  However, the company recently advised we must upgrade to 9 and then eventually to X.  In testing 9 and X, Compare Docs we have a critical issue and really need help.  Our PDFs are produced by IT in a batch process and one of our main, critical functions is to compare previous PDFs to current PDFs;  however, in using 9 the Compare screen automatically sets the Doc Description for our PDFs to "Scanned Doc" and does not produce any differences! If you try to change the setting to Reports --it totally shuts down both documents without running!  Version 7 runs the compare of the same PDFs  beautifully, pointing out all the differences, as usual!  Has this every happen to anyone?  Do you know what we can do to our PDFs to allow version 9 to do the compare and produce results?  Why is 9 treating these non-scanned PDF docs as such?  Thanks so much for any help or insight you can give me on this issue! 

    (Moved the discussion to the correct forum)

  • I have a older ipod and i need a charger for it the model

    help please i have an older ipod and i need to find a charger for it please help model number m8541

    So, if that is your iPod model, and you have a computer with a FireWire port, which even the current Macs do not have anymore, the cables are commonly available.  However, the one to get depends on the type of FireWire port you have on the computer.  The two likely types are 6-pin (older FireWire 400) and 9-pin (newer FireWire 800).  Your iPod has the 6-pin (400) port.
    Apple-centric vendor OWC has a selection of all types
    http://eshop.macsales.com/catsearch/firewire+1394+cables
    If your computer has 9-pin (800), you need a 6-pin (400) to 9-pin (800) cable.  If it has 6-pin (400) that looks like the port on the iPod, then you need 6-pin to 6-pin.

  • Lost my iPhone 6 Plus images and I need help getting them back.

    I may just have to go to the apple store, but I am going to see if anyone out here can help me out.
    Oct 31st I transferred my SIM from my iPhone 5S to a new iPhone 6 Plus. On December 7th(ish) my new iPhone decided that it would no longer focus on anything that was more than one foot away.
    I was hoping that it would fix itself but it never did. So I went to the Apple Forums and there were some people suggested that wiping out the phone and restoring the system would help.
    Before I wiped out my phone I did a back up. After the phone restored all the images and information came back. The camera started working for a couple clicks then stopped. I wiped out my phone three maybe four more times and it each time the images came back I even wiped out and set it up as a new iPhone and wiped back out and restored with my iCloud and the image still came up!!! ... but the focusing would not work for more than a couple of clicks.
    On December 12 I took it into the iPhone store they said I'd needed a replacement one. Before we removed the "find my phone" and wiped out the device we made sure the phone was backed up. Because I had over  5,500 images on my phone I didn't wait around the store to make sure they all popped up and went home.
    When I got home the phone only showed the 4,200 images I had taken with my iPhone 5S up to October 31st!!! However, under my settings my replacement iPhone 6 Plus shows 5,500 images but I cannot locate them.
    The other thing that is odd is that all my "shared images" from October 31st to December 12th that I took with my 6 Plus are still showing up as well as the ones that I sent via which leads me to think that they are lost out in the iCloud Universe somewhere.
    When logged on to my iCloud.com account it would only allow me to see what is on my current iPhone 6 Plus which includes the images before October 31st and the images I have taken since the iPhone 6 Plus. I cant see any of the images that are on my iPad that are set up under the same account, but it let's me see the icon for the iPad and it also shows me the icon for my other 6 Plus. However, the iCloud website will not allow me to click on the two icons and look at the images.
    I believe that after 30 days from December 12th those images will probably by default be deleted from the iCloud system and I want to make sure that I get them back before they do.
    I understand that apple changed the layout of the images and I did go and look at all my albums... so this not the case.
    I can see my back up from Dec. 9 and Dec 12th and have tried to do the restore on this phone the text and the contacts pull up but the images do not.
    Someone please help me out. I have all the images from our recent Disney World Vacation in there and I would really like to have them back.

    cuz me too same case I have also I lost all my photos 800pics

Maybe you are looking for

  • NVL and replace date when date field is null from table

    I am trying to replace a field with a date default when it is null and it is not working I was wondering if someone could give me a clue to what I am doing wrong Here is the part of the select statement: NVL (o.mass_production_date__c, TO_DATE ('1900

  • Can't drag and drop individual contact into group?

    I upgraded from SL to Lion. In the address books, I still have the individual contacts as well as groups. However, when I add new individual contacts and then drag them into a pre-existing group, it doesn't work. In fact, I can't figure out how to ad

  • The import data is incomplete or missing

    Hi, I have created a contract with a foreign (european) vendor. When doing the call-off from the contract I get this message "The import data is incomplete or missing" because the import procedure is'nt copied to the PO. The foreign trade data (<b>Co

  • Problem with script

    Heres the form: (Field name = calc) 10.1 = 9.1 x 6.1 12.1 = 8.1 - 11.1 13.1 = lesser of 10.1 or 12.1. If 12.1 is less than $50.00, then $50.00 10.1 and 12.1 are working just fine but 13.1 eludes me. The script runs in debugger but I can't get a value

  • IOS 5 and iTunes 11 - can they synch?

    If I update iTunes to 11 on my Mac, will I still be able to synch my iOS 5 device?