Create fast intenstiy histogram without Vision toolkit

I am trying to create an intensity histogram from an 8bit gray scale image that is being acquired from a USB camera.  Using the drivers that camera that came with the camera I am able to get a 2D array of image data (1021 x 764).  What I am doing is concatenate all the columns in the array to create a 1d array.  I then use the general histogram function that is set to a max of 256, min of 0 and 100 bins.  This approach takes approx. 5 secs. to complete. Attached is my approach.
Is there a better approach that would process much faster? 
If I use the Vision functions to convert the image data to an IMAQ image and then using the IMAQ histograph function, it processes almost immediately.  However I do not wish to use the Vision functions because I do not wish to pay for a Vision runtime license for each installation of my application.
Thanks
Terry.
Solved!
Go to Solution.
Attachments:
Image Histogram.vi ‏14 KB

This is the simplest way to obtain a histogram.  Is it fast enough?
That will give a 256-bin histogram, but I iust noticed that you want 100 bins for some reason.  The easiest way to do that is to scale your image from 0-255 to 0-99 (multiply by 99/255) and do the same thing, something like this:

Similar Messages

  • How to create report on excel without excel toolkit??

    Can anyone please tell me how to create an excel based report (much like what an excel toolkit produces) without having the luxury of
    an additional Microsoft Office toolkit/???
    thanks
    Now on LabVIEW 10.0 on Win7

    okey... simple question... i got the NI OFFICE toolkit, and i want to save all my DAQ data on an excel sheet and plot the graph for it....(create a report)
    my sampling speed it not much, 1 sample/sec. i am using the MS Office Report.vi to save the report to a file. however, i observe that if i add the MS Office Report.vi in while loop,
    the program keeps on asking for a file name every iteration unlike the Save to Measurement file.vi (where it asks only once and then keeps on adding data to the next file unless 
    any other logic is applied). also, it only saves the first 3 rows of data.
    how do i make the code so that the excel file saves the entire data and the graph plots a summary kind of plot of the data i have from the DAQ.
    Thanks in advance.
    Now on LabVIEW 10.0 on Win7

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • I've created a character report without user

    I've created a character report without user parameters that works just fine.
    The moment I've created a user parameter, without even putting it in a query, instead of
    a report I've got the message: "REP-1219: 'repeating_frame_name' has no size - length or with is zero".
    The same message I've got few times before:
    1. When in the Layout Model -> Main Section Width and Height were not set correctly. Setting Width and Height to right numbers solved the problem
    2. When 2 frames were overlapping. Turning off Snap to grid and moving the frames just a little from one another solved my problem.
    What should I do this time ?
    What I have installed is:
    Report Builder 6.0.5.35.0
    ORACLE Server Release 8.0.5.1.0
    Oracle Procedure Builder 6.0.7.2.1
    Oracle ORACLE PL/SQL V8.0.5.1.0 - Production
    Oracle CORE Version 4.0.5.0.0 - Production
    Oracle Tools Integration Services 6.0.5.32.0
    Oracle Tools Common Area 6.0.5.32.1
    Oracle Toolkit 2 for Windows 32-bit platforms 6.0.5.35.0
    Resource Object Store 6.0.5.0.1
    Oracle Help 6.0.5.35.0
    Oracle Sqlmgr 6.0.5.33.0
    Oracle Query Builder 6.0.5.6.0 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle ZRC 6.0.5.24.0
    Oracle Express 6.0.5.11.0
    Oracle Virtual Graphics System 6.0.5.32.1
    Oracle Image 6.0.5.34.0
    Oracle Multimedia Widget 6.0.5.34.0
    Oracle Tools GUI Utilities 6.0.5.35.0

    SEGURAMENTE UN FRAME TIENE POCA ALTURA,
    A MI ME HA PASADO LO MISMO,LO QUE HAGO ES QUE LOCALIZO EL ITEM Y LE DOY MAS ALTURA, POR ALGUNA RAZON REPORTS EN MODO CARACTER NO ACEPTA UNA ALTURA CORTA

  • Line profile without Vision

    I would like to make line profiles of live camera image without the Vision toolkit. I have LabView full development and IMAQ 2.6 under windows 2000. Has someone already done this and could help me with the programming ?
    Thanks

    Here is something to get you started. You have to input which row and column that you want to be displayed
    Attachments:
    Line_Profiles.vi ‏57 KB

  • Pixel to array conversion (Vision toolkit)

    Hello everybody,
    I'm writing a vi to read out a CCD camera. I'd like to visualize the read out image converting one of its axis from pixels to other units (namely nm). I managed to do that by visualizing the image on an intensity graph creating accordingly a property node for the axis I wanted to convert . Is there a way to do this, so basically to convert one of the axis from pixels to a given array of values, using the vision toolkit?
    Many thanks.

    Hello,
    Thanks for the reply.
    The problem I've got to solve is the following. I have to read out a CCD camera. The light reaching the CCD is dispersed by a spectrometer. I know the algorithm to determine the correspondance between a given pixel of the camera and the wavelength of the light dispersed by the monochromator and reaching that pixel. I wrote a small VI (please find it attached) to obtain an array of values of wavelengths corresponding to each pixels, basically I can use the output of this small VI to know which are the minimum and maximum values of wavelength (in nm) displayed on the CCD camera and the increment in wavelength (in nm) correspondng to each pixel.  So if I display the read-out image using an intensity graph, I can use those values to create a property node for one axis of the graph and have it converted in the units I want (namely nm).
    Now my question is: is there a way I can do the same using the output of my small conversion VI and one of the displaying options of the vision toolkit? The bottom line is: I'd like to use the vision toolkit vis instead than the intensity graph to display my images.
    I hope my question is a bit clearer than before.
    Many thanks for the help.
    Cheers
    Attachments:
    Pixel2nm.vi ‏12 KB

  • I have an iPad and and iPhone. They share an iCloud and I want separate iCloud accounts. How do I create a new account without losing any information? I want to keep the original account on one device.

    I have an iPad and an iPhone that share an iCloud account. I didn't realize when I got my iPad last year that when I signed up the iCloud on the device that it would share and use 5g of iCloud between the both of them. How do I unsync them and have two separate iCloud accounts? I don't care about sharing between them. When my kids put games on my iPad, I don't want them going on my phone. How do I create a new iCloud without losing any info on the other device?

    Hi sugaliko,
    You may need to set up your BlueTooth connection to the keyboard again. Use the steps in this article for guidance -
    iOS: Third-party Bluetooth accessories
    http://support.apple.com/kb/HT1664
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Restricting for creating the Billing Document without PGI in STO Process

    We want to restrict creating the Billing Document  without PGI in STO Process
    Delivery Type:NL
    Item cataogory:NLN
    Billing Type: JEX Profroma Invoice
    I have check in VTFL
    At Header Level, Routine - 003.  for normal sales process LF-F2
    At Item Level , Routine  - 004
    in VTFL-- NL-JEX
    At Header Level, Routine - 009. 
    At Item Level , Routine  - 010. here when i changed to 003 and 004 for NL and JEX
    i am getting error after PGI when i am doing vf01 error is coming " document is not relevant for Billing"

    Hi
    Kindly do the belwo
    1. goto the t code VOV7 item category determination and select the item category and put  the billing relevance as "A"
    2. once the step 1 is completed then it will show the billing relevant status AS "A"in the delivery documnt at the item level
    The above configuration  will be applicable in the new documents only
    Regards
    Damu

  • CREATE XML PUBLISHER REPORT WITHOUT USING RDF

    Hi Every one ,
    Can anybody share his/her expertise on following issue ?
    "How to create XML Publisher Report without using RDF?"
    Your help is appreciated.

    Hi Swapnesh
    YOu do not need to create the XDODTEXE, its seeded for you. You need to do the following:
    1. Create and test the data template
    2. Load the data template to the template manager against a data definition
    3. Create a concurrent program definition that uses the XDODTEXE as its executable
    4. Create parameters (if required) for the CP and DT that match in name
    You're done
    Regards
    Tim

  • How do I create a new profile without opening firefox?

    Firefox is not opening for me even after I uninstalled and re installed it, I have been told that often this problem can be fixed by resetting my fire fox account, and while I have been instructed on how to access my profile without opening fire fox there is nothing that will tell me how to reset my profile or create a new profile without opening fire fox. Please help, I don't want to loose my important information and I really really don't want to use chrome... it sucks...
    Thank you

    See:
    *https://developer.mozilla.org/Command_Line_Options

  • Creating an itunes account without a credit card messed up...can someone help?

    I followed the instructions to create an Apple ID without using a credit card (thank you google....) but somewhere after the verification email it went wrong.  Now, every time I try to log into the Apps Store on Itunes it prompts me to enter a credit card.
    Does anyone know how to fix this, so that I can get into the apps store?

    I think you have to log in using your account, enter the codes etc. for the gift card, and then the credit amount appears and she will be able to download the music. I did the same for my stepson, who is 16. An employee at the Apple store told me to do this and said when he is old enough to get his own credit card he can set up an account and the music he already has will play. Yes, I think that a credit card is 100% necessary and I presume that legally it forces you to be respponsible, as a parent, for your child's downloads as they cannot have a credit card under 18, at least under English law, and presumably, in other countries such as the USA, it is the same.

  • Hi, how can I create an iTunes account without a credit card? Thanks

    Hi, how can I create an iTunes account without a credit card? Thanks

    Welcome to Apple Support Communities
    Read > http://support.apple.com/kb/ht2534

  • How can i create an apple id without credit card

    How to create an apple id without credit card

    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Step 3 is important, no matter whether you do this on a Mac or an iPad / iPhone:
    Important: Before proceeding to the next step, you must download and install a free application. ...
    Important: Before proceeding to the next step, you must download and install the free application by tapping Free followed by tapping Install App. ...
    To summarize, you must first download a free app from the App Store. When you are asked to sign in with your Apple ID, select "Create new account". Accept the terms and conditions checkbox, then click Continue. After you enter all the requested personal data, click Continue.
    When you are asked to select a payment method, select "None". 
    That's all there is to it.

  • How can i create an apple id without using a visa or credit card

    how can i create an apple id without using a visa or credit card

    Follow the directions here, EXACTLY:
    http://support.apple.com/kb/ht2534

  • How can I create a new entry without using LOV for foreign keys.

    Referring to TUHRA sample application based on HR database schema. JDeveloper 10.1.3.0.4
    How can I create a new employee without using LOV for the foreign key "job_id".
    On the first page I would like to choose the job_title from adf read-only table.
    After clicking on the "create new employee button" a creation form appears in which the job_id field is set with previous selection.
    Regards M.Winkler
    Edited by: user3541283 on 06.10.2008 03:44
    Edited by: user3541283 on 06.10.2008 03:50

    Hi,
    usually the foreign key is only set if the VO you select is dependent from a master. If e.g. you have DepartmentsVO1 that has an EmployeeVO3 as its nested VO, then creating a new instance of employees automatically add the foreign key. If you add EmployeesVO1, which is not dependent to DepartmensVO1, then the foreign key is not set. So if this is the case in THURA (keep in mind that this is not an Oracle demo but a sample used in a book about ADF) then all you need is to take the independent VO when building the new employee form.
    Frank

Maybe you are looking for

  • Good Receipt Indicator in PO

    Hello; I wanted to know if someone experienced something about the good receipt indicator (GRI) in the PO, when the PO line item has an account assignment the good receipt indicator in the delivery tab becomes active but if the PO line item does not

  • Ios 8.1.1 ipad mini

    i have ipa mini and wih ios 8.1.1 i cant use maps because tell me location services is failed.i have another ipad mini with ios 8.1 and this ipad is ok.is problem with ios 8.1.1??!!!!!

  • Hi!  Iphone ID problem

    i changed my apple ID on the PC but it didnt change the one on my Iphone and I dont remember the one on my phone! what can i do? how can i change it? thx

  • How to integrate desktop DNGs into Lightroom folder structure?

    I had a crisis earlier this year when I bought a Canon 6D just before a trip and realized too late that Lightroom 3 on my MacBook wouldn't accept it. So in desperation I downloaded Adobe's DNG converter, which solved the immediate problem, but for so

  • About:blank

    Hi, since installing Firefox 4.0 in Vista I have noticed an about:blank page appearing for a couple of seconds particularly when I navigate from MSN home page to my sign-in. Is this something I should worry about or is it just one of those computer t