calculate pixel intensity in an image in black and white

Hi all

First of all, im new to labview. Now, this question may have been asked before, but I'm not quite sure. OK, so I have an avi video that can be allocated by 50 images. I used imaq threshold and a loop for to put a threshold in each image, which makes them black and white. What I want to do is to calculate the percentage of area which is highlightened as white. I thought that I can do by calculating the total number of pixels that have an intensity of 1. I know the black pixels are 0 intensity and I also know the total number of pixels in each image. I tried to use the function to quantify but I couldn't get the desired effect. Then, I tried to use imaq light meter, but still I could not the exact number of pixels with an intensity of 1, only the mean value and the standard deviation of the pixel. I can probably calculate the area that is intense using these two values (mean, st.dev) and simple statistics, I think, but I need more detailed results. Is there a way to get the total number of pixels with intensity of 1 in a black and white setting? Sorry if this question has been asked before, I could not find that a related. Sorry for my bad English as well. Waiting for your answers.

Thank you very much.

The problemwith gregoryj code is that it converts to a table of Boolean number, not a number, the value of this number depends strongly the position of values in the table that are True.

Once you have the array of pixels in the black and white image (all the values 1 or 0), just use Array Sum to get the number of 1.

Lynn

Tags: NI Software

Similar Questions

  • Satellite M40-296: broadcast of TV-OUT - image is black and white

    My M40-296 with ATI Express 200 M doesn´t work well with TV-OUT. While the BIOS is set to Pal, and the software is configured for PAL-G (Portugal) the image is black and white. I ve tried two cables. A s-video/composite and s-video live.

    Can anyone help?

    Hello

    See this post:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6310&MessageID=21884#21884

    Maybe this will help

  • Create the image with black and white patterns

    Hello

    With the attached VI I am able to create an image that is completely black (or white or any color according to values in the color palette). See picture1.

    Is it possible to create an image as photo 2 and photo 3 or any other form which consists of black and white patterns? I need an image with black and white areas that a camera can recognize.

    Thanks for any help.


  • How to select the pieces of my image in black and white?

    How to select the pieces of my image in black and white? FOW example letter J or the circle or the two together?

    jaguar_growler_blur best8.png

    It's actually pretty easy, but I have to assume that you know a few basics in Photoshop

    (1) open your existing image

    (2) double click on the layer and the 'layer style' appears. In the mix if area set the sliders so the whites in the image disappears

    You will be left with just the black elements in design

    (3) duplicate layers

    and merge them together

    to give a standard layer

    (4) ctrl or cmd click on the layer to select and create a layer mask

    (5) you now have a mask of the image. Duplicate the layer, click alt or option, click on the layer mask to call

    (6) the blacks and the whites are not completely black and white for the use of levels to adapt to the absolutes

    (7) now you have to decide what you want to select. In this case, I chose the lettering and simply covered everything else to the top with black. You do this by lasso selection and fill and items when it's delicate brush just the details with a black brush "hard." .

    (8) at this stage, you can do what you want you have a layer mask. So you can color the text for example

    or place in a background color and apply a layer as Beveling effect

    Hope that makes some sense. It is much easier to do than to describe.

  • Could not watch television and the images are black and white on Qosmio

    Hi, live Saudi Arabia
    I have problem with my TV Tuner. When I scan the channel it is find frequency for some channels, but cannot look at them!

    also when I try to capture using model-SVIDEO color balck & white that I try to use PAL nothing changed
    And thanks for the help

    Hello

    One question; Did you purchse the notebook in your country?

    I guess that the black and white image appears on the TV. Am I wrong?
    This can happen if the TV doesn t s-video or if the s-video option is not enabled on the TV.

    In addition, I would recommend to check the version of the driver installed tuner.
    Then go to the page of the Toshiba driver and check the version of the tuner driver.
    If the new driver is available, so please download and install on the Qosmio.

  • InDesign - type display images appear black and white and grainy

    Please help! I have scoured the internet looking for a solution to this problem for many years and were generally able to work around it so far.

    A bit of background first: all the images are recorded as a dish, .eps, CMYK, 300 dpi (about 6 inches square), with clipping paths. All images are created from the same Photoshop file (working model) - photo of a single bucket on a white background, with an existing clipping path. Illustrator illustration is placed in this file and distorted to create images for the various products that we manufacture. (Rather than photograph each bucket with a tag on it).

    Issue 1:

    What seems to be completely random, sometimes square or re-related images in InDesign appear black and white dotted with images (typical display). I used to get frustrated with it, but since I couldn't find a solution, I usually ignore it because the "high quality screen" works very well.

    Two of these buckets below have been created since the same file photoshop, the same day, saved in the same way. The two shown here in typical display.

    Screen Shot 2015-11-17 at 11.54.26 AM.png

    Even buckets again, both the 'high quality screen '.

    Screen Shot 2015-11-17 at 11.54.41 AM.png

    2nd question:

    Now, I create a new InDesign "Data sheet" model for our products and each sheet will have 3 buckets shown. Because the buckets are white, I add shadows laid and Interior to create the deep shadows. I want to be able to create a Standard model, given that several designers in our Department are going to access it and when they create a new datasheet, all they need to do is add a link to the photos of the bucket for the new product (which will be created from the photoshop, existing model) and drop shadow/inner shadows everything remain the same.

    On the images that become black and white grainy (3085 above), the effects are applied to the colored areas of the buckets, no not the path of clipped bucket.

    This screenshot below shows two buckets to high quality screen. I've selected two images and try to apply the same exact shadow, but as you can see on the left is almost ghost image of bucket. The two images have the exact same clipping on them. Help, please!

    Screen Shot 2015-11-17 at 11.55.34 AM.png

    SPE is no longer recommended for use with InDesign format. Because these files have some content vector and raster, save it as a Photoshop PDF and see if it helps.

  • Photoshop - new Images are black and white only

    I'm working on a wallpaper and I import the background and I'm going to hide the logo until the inside of the outline of the logo is an image. I'm looking online for some good photos test and see what I like best. I uploaded a photo and the colors were only black and white. I thought that maybe something was wrong with the picture so I had another image, and the same thing happens.

    Screen Shot 2015-10-13 at 9.49.36 PM.png

    I have found something like this but desaturated colors, although not all black and white. My proof Setup is: work CMYK. I do not think that I have never changed it, so I don't know if this actually caused this problem. I don't know exactly all the settings in Photoshop so if you describe something like change a setting, it would be very appreciated if you told me where he was, etc.

    Thank you, fofana

    Hi Coler

    You have chosen as the Image Color Grayscale > Image Mode

    Change it to RGB/CMYK

    Concerning

    ~ Assani

  • InDesign is no longer we'll me colorize black in grayscale or black and white images related after update.

    I first noticed this problem when I open an old file that I knew that I had previously color and black and white logo with a shade. When I open the file after update, the logo positioned (this is a tiff file, the color space is black and white) was black instead of orange. I know I used to be able to place an image in black and white, double click it and change the shade black to a color, but now after update I can't do. I tried to uninstall and reinstall the program, but I had no chance. Any ideas?

    Known issue. Use overprint preview to see the appropriate color.

  • Change image color in black and white.

    Hello

    I have a color image. I want to change the half-portion of the image in black and white. Can someone gice me the idea to do.

    Thank you and best regards,

    Sreelash

    I just do the conversion to black and white in Photoshop and import the image.  If the intention is to tarnsition of black and white to color (or vice versa), then I would have melted the _alpha of a movieclip taking the image.

  • color black and white bitmap image

    Hi, how can I convert a color to grayscale image using as3?

    If you tell a movieclip on the stage with MC instancename, then you can do it in black with:

    var red:Number = 0.2225;
    var green:Number = 0.7169;
    var blue:Number = 0.0606;
    
    var matrix:Array=   [red, green, blue, 0, 0,
                        red, green, blue, 0, 0,
                        red, green, blue, 0, 0,
                        0, 0, 0, 1, 0];
    var cmf:ColorMatrixFilter=new ColorMatrixFilter();
    cmf.matrix=matrix;
    
    MC.filters=[cmf];
    

    Credit to:

    Conversion of an image in black and white using the ColorMatrixFilter

    Effects of color and brightness with the code

  • Photosmart HP 6520 - print in color, not black and white

    I have had this printer for some time and configure options so that it used only the black cartridge unless I put it specifically to do otherwise when I wanted to color.  It worked well and I could switch between black and white and color very easily.  A few weeks ago, the printer started to ignore the options I would set and printed in color.  I double checked the parameters, and the printer is always set up for black and white, but now it completely ignores and still print in color.

    I tried the settings at the time of printing, and that indicates that the image in black and white, it still prints in color.

    I haven't added any software or made any changes to my pc.

    Can someone help me with this, please?

    Hi Lulu and thank you for the reply!

    I suggest to download and run the HP print and Scan doctor.  Once you have run the tool successfully, try again the configuration in black and white.

    Please let me know the results.

  • Satellite M30: black and white TV with S-video output

    I have a M30 bought in the United Kingdom currently I am in the United States
    When I try to connect my M30 to my TV via a RGB cable, it works very well but failed to get a similar result via S-video. The image is black and white and very fragile.

    Is it to do with the fact that the standards of television in the United Kingdom and the United States are different (PAL or NTSC) or is this something else?

    Can you recommend how can I change the output format of the S-video signal?

    Thanx

    MR. M.

    Hello

    The fact is that U.S. NTSC standard and it can be the reason for this, but if you use connection S-Video S-video port on the TV must be turned on. If not, the image can be produced in black and white.

  • How do I convert a photo to black and white but leave one object in color like a flower?

    How to make a photo I have taken, convert the image into black and white, but let an object such as a flower in color?

    Here is a small tutorial

    Lightroom > topic tutorials > Spot Color (B & W with little color)

  • I am trying to print the color of the CS6 PS and it comes out black and white. How can I fix it?

    All other Adobe applications print correctly.

    Check your settings in the printer driver dialog box.

    If you send a color image on a color printer, Photoshop sends color.

    The operating system or the printer driver are the only things that could change the image in black and white.

  • ATI Mobility Radeon X 1400 with the problem of the TV, only the black and white photo

    Hello

    When I try to connect my TV to my Dell Inspiron 6400 with ATI Mobility Radeon X 1400 card, all I get is a black and white image. I have tride all the PAL settings.

    What I tried: I connected the s-video with an s-video cable output to my TV s-video connector (composite) result: no color image, just black and white of my office.

    I connected the s-video with a s-video SCART cable output to my SCART TV (RGB signal) result: no color image, just black and white of my office.

    I connected the s-video with a s-video SCART cable output to my SCART TV (composite signal) result: no color image, just black and white of my office.

    His is no problem, this workt fine.

    Anyone know how can I get the color on my TV? Is this possible with my s-video cables? What type of signal you send with my Mobility Radeon X 1400 graphics card?

    Kind regards

    Marcel


Maybe you are looking for

  • Right satellite M305 broken hinge?

    Part # s4907 The metal hinge on my laptop is exposed and two sons are also exposed. The small cover that covers the hinge broke a while back and I have no idea when or where it is, just noticed once. The hinge is now coming out and the right side of

  • More memory

    Could someone tell me what exactly I need to buy to add 8 GB of memory to my iMac please? Is there a youtube where he shows how to install it?

  • Problems to get a 1080 p (1900 x 1080) resolution on Satellite Pro U200

    Hi all I'm new to this forum. I have a 1080 p screen, it works perfectly with my old desktop (with 4 gforce graphic card). But when I connect this monitor to my Toshiba U200, set max resolution is limited to 1680 x 1050. I've updated the drivers from

  • Receiver STR-DE197

    Play my turntable to disk through my receiver STR-DE197 (port CD or MD/TAPE) I can't get minimum sound speaker at max volume level.  Any suggestions to solve this problem.

  • Install SSL SonicWall NSA 220

    Hello I need know if possible to install SSL from comodo or symantec. I have a sonicwall NSA 220. thnks for help.