Problem of acquiring color image

Now I try to acquire color image but show in grayscale real time with filter it before. The result is so slow on monitor. How can I do to acquire the filter image faster.Any help very appreciated.

First make sure that you have the most efficient kind of aqusition running.IMAQ LL Ring Without Timeout is the most efficient continous aquisition scheme I know of.
The you must make sure that your conversion and filetering code is efficient. As far as conversion is concerned make sure and use the extract color plane VI and extract the luminance plane. This is the fastest way to do color to gray scale. You can play around with Vision Builder and the Script>>Performace Meter Option until you get a filtering script which is faster than your frame rate.
Hopoe this help,
Amaury Rolin
NI Applic
ations Engineer

Similar Messages

  • Export Problem with Color Image Washing Out

    I did an export of an image from DNG to JPG in LR4. Funny thing is, the JPG suddenly appears with a washed out look. It looks the same in Develop and Print modules also.
    It gets even funnier, because when I use Finder to check the photo, the preview of the image is fine. I also opened the image from Finder in Photoshop CS5 and it is fine there. I also opened the image in PSCS5 from LR4 with "Edit In" and again the image in Photoshop is fine. So this appears to be a view issue in LR4. I did not print out the washed out photo but I suspect it would print out as it appears in LR4.
    I've done some other image exports from DNG to JPG with other images and they do not have this problem but those were black&white converted images. However, I did check doing an export of another color image with the same result as the problem image. Here are screen captures of the DNG and the exported JPG (I was going to upload the exported JPG, but like I said it appears fine in Finder):

    My monitor calibration is just fine. I was saying that because similar
    problems are almost always due to bad monitor profiles. If you calibrate
    regularly using hardware calibration then you're probably fine. Many people
    use canned profiles from monitor manufacturers however and lightroom is
    highly sensitive to those and shows messed up color depending on the
    source. In this case however, since the restart fixed it it was likely a
    bad preview image. I have seen before that LR sometimes is lazy in
    refreshing those and can show you strange results that only get cleared up
    by forcing a preview refresh.
    Last your top screenshot DOES show that you are pushing the red in that
    dress out of the monitor gamut. You can check this in the soft proof in LR
    4 by turning on the monitor gamut warning. If you blow the color out of the
    monitor gamut the preview is no going to be accurate no matter how good
    your calibration. Just a cautionary warning.
    Sent from my iPhone

  • Problem using IMAQ Array to Color Image vi

    I am doing some pixel manipulation & while going from an image to an Image Pixels (U64) array using IMAQ Color Image to Array VI I cannot see the image once it is modified.
    I am...
    1) converting the image to the 64 bit pixel data using IMAQ ColorImage to Array.vi
    2) doing the manipulation
    3) converting back to an image using the IMAQ Array to ColorImage.vi using the 64 bit input.
    What I get is...
    1) a black image with data behind it... meaning... if I take the magnifier tool and go to the approximate locations of my image where I expect to find the manipulated data, it is there.
    2) cast that image to a 32 bit image & still get a black image for the output.  The data however is no longer there and appears to have been stripped.  
    3) no error's out of any VI's...
    TIA  

    With Vision 2009 situation is not better.
    It happened because U64 image displayed in full scale. So, if you have full range of intensities (from 0 to 65535), then you can see something. But if your intensities in small range, for example, 0...255 in all channels, then you will see black image.
    Feel differences:
    It should be possible to map U16 values into U8 display range  with given range (like IMAQ WindDisplay Mapping does), but right now this feature available for I16 images only, not for U64. What you can do is following - map each channel to U8 (with linear LUT, for example), put channels together, then display 32 bit RGB instead of U64.
    Andrey.

  • Problem creating a binarize image

    Hi,
    I have a problem creating a binarized image.
    I have an java.awt.Image from Twain (with the Morena Framework) I have to compressing with COMPRESSION_GROUP4. Before I must obtain a binarized RenderedImage.
    Before I have need of one single-band image.
    With this code I succeed to obtain a single-band image but for acquired images with 100 dpi resolution only and moreover images have inverted colors.
    How I can obtain single-band images with resolution larger than 100 dpi?
    public static RenderedImage binarizer(RenderedImage img){
            double[][] matrix = {{ 1.0 , 1.0 , 1.0 , 0.0}};
            ParameterBlock pb1 = new ParameterBlock();
            pb1.addSource(img);
            pb1.add(matrix);
            RenderedImage bandCombinedImage = JAI.create("bandcombine",pb1);
            RenderedImage binarizedImg = JAI.create("binarize", bandCombinedImage, new Double(1));
            return binarizedImg;
    //..

    OK it seems no one can help, so I'll try a different question;
    The reason I want to create an encrypted disk image is because I've been everywhere on the 'net' and cant find out how to password protect a folder on my Mac.
    This seems like something that should be very straight forward, but for the life of me I cant find what I'm looking for. Every post I read refers to creating an encrypted disk image, or playing with folder permissions - non of which actually achieve the desired result.
    Surely its not that hard create a folder that requires a password to be viewed??

  • Bridge displays color images as b&w

    I assume this has something to do with settings in Bridge CS4, my platform is MacBook Pro OS 6.8.10.
    This question might confuse some people. To beging with, I do shoot my images in RAW files, I even have Bridge convert them to DNG files.
    Upon download the images are displayed in color as they should be for RAW files. After editing images in Camera RAW,  I convert most all images to sRGB. When some of those edited images come back to Bridge, they might be presented in B&W, though no color is lost to the file upon displaying in Photoshop, and I did not edit the file to be a B&W image. I have DNG, Canon RAW, Tif and Jpeg files, and most of these are displayed in color, but some are not, and I have not figured out the missing link just yet. So to be clear, I have Jpeg color images, displaying as b&w images, but they are color images. Only b&w images should be displayed as b&w.
    This problems started once I learned I could edit one image in photoshop out of a series of images, then after editing, i could bring the single photo file back to bridge, and then copy/paste image settings onto a groups of images in Bridge, and all those images would then have the same adjustments made to them as a batch edit adjustment.
    But now sometimes I get a B&W display on some images even when I do not apply a Bridge settings edits, and when I never edited the image for a B&W display.  I has to a setting somewhere in Bridge, and I just have not figured it out yet.
    Thanks in advance for all suggestions:

    ssprengel wrote:
    Yammer asked a pertinent question that remains unanswered—is that “settings” badge (small lines-triangles-in-a-circle) shown on the B/W image thumbnails (at least).  If you’re not sure, then include a screenshot of a few Bridge thumbnails where some are color and some are B/W, using the little camera icon on the web version of the forum messages.
    And the answer is NO!. I only have those showing up associated with the .DNG files (Camera RAW)
    Another similar question would be if you see a B/W thumbnail in Bridge, try doing a right-click (or whatever the Mac equivalent is) and choose Open in Camera Raw.  Is the image in B/W or color in Camera Raw.
    A <Control Click> (on MAC), opens the .jpeg file in b&w, as shown in the thumbnail.
    Can you upload three versions of one of the images that display as B/W:  the original PSD/raw/TIF file, a normal Save As JPG that is in color, and a Save For Web JPG that is B/W?  Use something like http://www.dropbox.com/ and post a public download link to the images, here.
    NO, I thought I explained that real well. Only the .jpeg file that was saved through the "Save for Web" processing ( that is, the a jpeg the goes through greater compression to reduce image file size for web display), is the image file process that produces the b&w thumbnail in Bridge ONLY. All opened images, of various file formats (ie: DNG, Psd, Tif, Jpeg, & Jpeg for Web), all present Color presentations (for editing in Photoshop, and or in display browsers). It is only the thumbnail of that particular jpeg formatting processing for Web Images that produces the b&w image "THUMBNAIL" in Bridge.
    When you Save As JPG or For Web, are you ever overwriting the original image with a new one or do you always save the PS-edited image with a new name?
    No, never. I leave my RAW files, as RAW originals, and work on newly names images files.
    A theory about what is happening is that Bridge uses Camera Raw to generate its thumbnails, and the images that are B/W have some embedded Camera Raw setting, perhaps pasted from a different filetype, that makes CR think the image should be rendered as B/W, but when you open the images on Photoshop, you are opening them directly, without using the Camera Raw plug-in, so any embedded settings are ignored, and the image displays in its original state without the settings having been applied.
    It makes since, (what you are saying), and it certainly does respond in that fashion. Your suggestion to open Ctrl Click, or Right Click to open the thumbnail in Camera RAW, was an interesting test, and the response was to open the previously save color image with a b&w thumbnail, into Camera RAW as a b&w image. So Camera RAW is responding to what is in the xmp settings that describes this images thumbnail to be displayed b&w. It is weird that a browser does not.
    As to what is in the window selections for the "Save for Web" editing windows, Presets for jpeg are :
    Progressive
    Optimize
    Embed Color Profile
    And I use Embed Color Profile.
    Even the Preview button at the bottom of the window, shows the color image as displaying color.
    I vaguely remember about a year ago doing some CS 4 Photoshop and Bridge web tutorials from an unnamed tutoring website and guy named D_k_ . It is his fault. Just kidding, I actually enjoy those tutorial.
    **** Okay, this is perhaps originating from Camera RAW presets, where you can apply previously made settings to other images and then saved them as Presets. Though I don't have this checked in Camera RAW ( still something goofy is going on there), I did find that in Bridge I can reset the individual "saved for Web" image thumbnail back to the the color image by :
    Right Click  (Ctrl Click, MAC) on the thumbnail
    menu down to the "Development Settings" and select :
    "Previous Conversion", and this presents the color thumbnail.
    I have now tested all the Camera RAW settings in Camera RAW, by opening an image in each one of these :
    Image Settings
    Camera RAW Defaults
    Previous Conversion
    Custom Settings
    and then reducing image file size, and saving for the web, while changing file name, and each and every one of these Settings produces a Sepia Toned thumbnail. I found out the images were a subtle Sepia Toned image by enlarging the Bridge Thumbnails bigger for a better view. So I can correct the thumbnail after it has been created, but so far, I can't get the thumbnail to be correct on first creation of the web saved jpeg image file. Regular jpeg image file thumbnails save correctly.

  • Convert color images to black&white bitmaps

    Hi,
    I have black&white scans of public domain books (image format). I use an OCR software to convert them to indexable PDFs (image+text format). However, the OCRed PDFs are insanely big: a 27 MB scanned PDF leads to an indexable PDF of 728 MB! And unfortunately, my OCR software doesn't have output settings, so I have to find a way to compress the files using Adobe Acrobat 9 Pro.
    Using Advanced Options > Optimization does reduce the file size, but not significantly. The problem seems to be that my OCR software converts the black&white scans to color images, and encodes them as such inside the PDF. So I need a way to set the image modes back to black&white. I tried using the Advanced Options > Preflight dialog, and selecting "Convert to black&white". However, the resulting PDFs stay about the same size! It seems that "Convert to black&white" converts the images to grayscale, instead of to bitmap.
    Any help would be appreciated!

    I mentioned "bitmaps", because when I open the original PDF and right-click a random page and select "Modify image..." and open the image in Photoshop, the mode is set to "Bitmap mode": meaning 1-bit mode, containing either black or white pixels. However, when I do "Modify image..." for the OCRed PDF, the mode is set to "RGB Color Mode". I think this explains, in part, the huge size of the OCRed PDF.
    Maybe this table will make it more clear:
    Original PDF (Bitmap Mode, 132 dpi)
    Size: 27 MB
    OCRed PDF (RGB Color Mode, 300 dpi)
    Size: 728 MB
    Now, from the table above, it's clear that I have to reduce the image resolution. So, using the Acrobat's PDF optimizer, I tried the following settings:
    Optimized OCRed PDF: Try 1 (Downsample to 132 dpi, JPEG compression)
    Size: 733 MB
    Optimized OCRed PDF: Try 2 (Downsample to 132 dpi, ZIP compression)
    Size: 449 MB
    But 449 MB is still huge for a single book. And I don't want to reduce the resolution under 132 dpi, because I will loose quality. Clearly, if the original document is just 27 MB, I should be able to squeeze the OCRed document too. But I don't know how.

  • DW CS3 problem with PNG-8 images in Design View?

    DW CS3 (build 3481) on XP seems to have problems with PNG-8 images, specifically trying to display them in design view.
    I had a very simple image that was able to be exported by Fireworks CS4 as PNG-8 using 4 colors (no transparency) for a tiny file size under 250 bytes.
    DW could not display it at all, or even recognize it, reporting it was 0 x 0 in size. I published the page anyway, and it looked fine in the browser.
    I upped the number of colors to 32, and DW could then display it in design view in the page I was working on.
    I'm still having problems with other PNG-8 images. The attached file "temp.jpg" is a screenshot showing part of the design view in DW.
    The smaller image on the left of the banner is "58_certificate_of_discharge.png" (attached), and the larger image below is used as the background of the DIV containing the form,"compassbk.png" (also attached).
    These images all look fine in the browser, but terrible in DW.
    I'm stumped as to why.
    Thanks in advance.

    According to a different discussion, the images that are stuck as "Queued" are showing a bug in the virus scanning on the forums.
    Now trying the recommended 'camera icon' method...
    Looks like it worked.
    Now compare what it looks like in DW CS3 in the design view:
    It's a 16 color PNG-8 made in Fireworks CS4 with no transparency, size is 113 x 58, ending up at 1.71K.
    If this is a repeatable problem in CS3, is there any hope of it being resolved, or am I stuck with upgrading to CS4 as my only option (assuming it's fixed in CS4)?
    Thanks.

  • Convert grayscale to colored images

    Hi
    I am stuck with my program.
    BufferedImage gray = new BufferedImage(bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_BYTE_GRAY);
    Graphics g = gray.getGraphics();
    g.drawImage(bi, 0, 0, null);
    g.dispose();using the above code, i have converted a colored image to a grayscale image.
    now my problem is, i want to convert that grayscale image back to colored.
    is there any way to do so?
    please help
    thanks

    I am no expert in this, but I believe that when you lose the color information, it is lost forever never to be retrieved, that the basic premise of your program is incorrect. So, perhaps you can store information on what "filters" were applied (I'm not familiar with this "filter" concept) and in what order, and then after you have completed all the gray image processing, apply these filters to the stored colored image and then save it.

  • How to use 2 1409 boards with sony xc55 to acquire 2 images simutaneously

    We want to use two 1409 boards with two sony xc55 cameras to acquire two images simutaneously. From the attached files, you will find what I have done and the problems. I just followed the example program from you. But it doesn't work well. Could you help me? thank you very much.
    Attachments:
    What_happen_now.doc ‏25 KB
    XC55_Asynchronous_Reset_ExampleTwo_Cameras1.vi ‏265 KB

    Kobel,
    Both cameras are being triggered at the same time, and both boards are aquiering the image at the same time. The problem you are seeing is related to copying the correct image.
    The IMAQ driver is not currently multithreaded, therefore your second copy opperation can not execute until your first one is done. The trouble is that you have the immediate terminal set to false which forces the copy to wait for the next available image before returning.
    Since the second copy does not execute until the first one is complete, it will consider the frame that just passed as old and wait for the next available frame.
    The quick solution is to change the immediate terminal to true on both copies. The best solution depends on your entie application. You may want to re
    ad this application note on Ring Aquisitions for ideas.
    Regards,
    Amaury Rolin
    NI Applications Engineer

  • 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...thanks

    VBAI 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.

  • Has anybody used the Camera RAW filter on an OpenEXR, HDR or similar floating point color image?

    I often work on floating point images rendered out of 3ds Max, specifically OpenEXRs, and I have been lately using the Camera RAW filter to do some image adjustments. There is one problem though, the float image does not load correctly into Camera RAW. It looks slightly over-exposed when loaded and it is nearly impossible to get it back to "scratch". Is Camera RAW not fully float capable? Camera RAW is a drunkard compositor's dream when doing color corrections on a floating point image, especially an image rendered out of a 3D application such as 3ds Max or Maya. Any thoughts?
    Mark Kauffman
    Technical Lead of Project Visualization
    Parsons Brinckerhoff

    For what it's worth I have seen this going back a loooong time.  I've posted on the subject as well and have never gotten a solid answer.  It just appears as though Photoshop considers it "already open, so no need to open it twice".  I believe an uninitialized variable could be involved, since it's intermittent.
    I have found a couple of choices for workarounds or workflow changes...
    1.  You can save the first-opened document opened (e.g., as  a .PSD) somewhere.  Then reopening the raw file will always open a second document.
    2.  You could consider opening the raw file just once, duplicating it as a second layer, then use Camera Raw as a filter.  Obviously that doesn't avail Camera Raw of the raw data, but its usefulness depends on what you're trying to accomplish.
    -Noel

  • Color images in smartforms

    Hi,
      I Have uploaded Color BMP file and Tried to Print using smartforms.
      In Print preview Color Image looking Fine. But in Printout it is Showing as B/W Image.
      What might be the Problem?
    Thanks,
    Kishore

    Joan,
      What are the Setting we need to do for the color Printer?
      Thanks for Your Help.
    Kishore

  • I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes.   I hav

    I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • How to convert a jpeg file into a 1-bit bmp file (2 colors image)

    Hi. I�m having serious problems to convert a jpeg file into a 1-bit bmp file (2 colors image).
    I�m using FileSaver.saveAsBmp(String t) but what i get is a bmp image, but with 16M colors, but what i want is a 2 colors bmp file. A black and white image.
    Does anybody know how to do this? I�m really getting crazy with ths problem.
    Thanks in advance

    Hi opalo,
    this code may help you...
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.ImageIO;
    class Write1 extends Component {
    //--- Private constants
    private final static int BITMAPFILEHEADER_SIZE = 14;
    private final static int BITMAPINFOHEADER_SIZE = 40;
    //--- Private variable declaration
    //--- Bitmap file header
    private byte bitmapFileHeader [] = new byte [14];
    private byte bfType [] = {'B', 'M'};
    private int bfSize = 0;
    private int bfReserved1 = 0;
    private int bfReserved2 = 0;
    private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
    //--- Bitmap info header
    private byte bitmapInfoHeader [] = new byte [40];
    private int biSize = BITMAPINFOHEADER_SIZE;
    private int biWidth = 50;
    private int biHeight = 70;
    private int biPlanes = 1;
    //private int biBitCount = 24;
    private int biBitCount = 1;
    private int biCompression = 0;
    private int biSizeImage = 0x030000;
    private int biXPelsPerMeter = 0x0;
    private int biYPelsPerMeter = 0x0;
    private int biClrUsed = 0;
    private int biClrImportant = 0;
    //--- Bitmap raw data
    private int bitmap [];
    //--- File section
    private FileOutputStream fo;
    //--- Default constructor
    public Write1() {
    public void saveBitmap (String parFilename, Image parImage, int
    parWidth, int parHeight) {
    try {
    fo = new FileOutputStream (parFilename);
    save (parImage, parWidth, parHeight);
    fo.close ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * The saveMethod is the main method of the process. This method
    * will call the convertImage method to convert the memory image to
    * a byte array; method writeBitmapFileHeader creates and writes
    * the bitmap file header; writeBitmapInfoHeader creates the
    * information header; and writeBitmap writes the image.
    private void save (Image parImage, int parWidth, int parHeight) {
    try {
    convertImage (parImage, parWidth, parHeight);
    writeBitmapFileHeader ();
    writeBitmapInfoHeader ();
    writeBitmap ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * convertImage converts the memory image to the bitmap format (BRG).
    * It also computes some information for the bitmap info header.
    private boolean convertImage (Image parImage, int parWidth, int parHeight) {
    int pad;
    bitmap = new int [parWidth * parHeight];
    PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
    bitmap, 0, parWidth);
    try {
    pg.grabPixels ();
    catch (InterruptedException e) {
    e.printStackTrace ();
    return (false);
    pad = (4 - ((parWidth * 3) % 4)) * parHeight;
    biSizeImage = ((parWidth * parHeight) * 3) + pad;
    bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
    BITMAPINFOHEADER_SIZE;
    biWidth = parWidth;
    biHeight = parHeight;
    return (true);
    * writeBitmap converts the image returned from the pixel grabber to
    * the format required. Remember: scan lines are inverted in
    * a bitmap file!
    * Each scan line must be padded to an even 4-byte boundary.
    private void writeBitmap () {
    int size;
    int value;
    int j;
    int i;
    int rowCount;
    int rowIndex;
    int lastRowIndex;
    int pad;
    int padCount;
    byte rgb [] = new byte [3];
    size = (biWidth * biHeight) - 1;
    pad = 4 - ((biWidth * 3) % 4);
    if (pad == 4) // <==== Bug correction
    pad = 0; // <==== Bug correction
    rowCount = 1;
    padCount = 0;
    rowIndex = size - biWidth;
    lastRowIndex = rowIndex;
    try {
    for (j = 0; j < size; j++) {
    value = bitmap [rowIndex];
    rgb [0] = (byte) (value & 0xFF);
    rgb [1] = (byte) ((value >> 8) & 0xFF);
    rgb [2] = (byte) ((value >> 16) & 0xFF);
    fo.write (rgb);
    if (rowCount == biWidth) {
    padCount += pad;
    for (i = 1; i <= pad; i++) {
    fo.write (0x00);
    int b = 1200;
    fo.write(b);
    rowCount = 1;
    rowIndex = lastRowIndex - biWidth;
    lastRowIndex = rowIndex;
    else
    rowCount++;
    rowIndex++;
    //--- Update the size of the file
    bfSize += padCount - pad;
    biSizeImage += padCount - pad;
    catch (Exception wb) {
    wb.printStackTrace ();
    * writeBitmapFileHeader writes the bitmap file header to the file.
    private void writeBitmapFileHeader () {
    try {
    fo.write (bfType);
    fo.write (intToDWord (bfSize));
    fo.write (intToWord (bfReserved1));
    fo.write (intToWord (bfReserved2));
    fo.write (intToDWord (bfOffBits));
    catch (Exception wbfh) {
    wbfh.printStackTrace ();
    * writeBitmapInfoHeader writes the bitmap information header
    * to the file.
    private void writeBitmapInfoHeader () {
    try {
    fo.write (intToDWord (biSize));
    fo.write (intToDWord (biWidth));
    fo.write (intToDWord (biHeight));
    fo.write (intToWord (biPlanes));
    fo.write (intToWord (biBitCount));
    fo.write (intToDWord (biCompression));
    fo.write (intToDWord (biSizeImage));
    fo.write (intToDWord (biXPelsPerMeter));
    fo.write (intToDWord (biYPelsPerMeter));
    fo.write (intToDWord (biClrUsed));
    fo.write (intToDWord (biClrImportant));
    // DataOutputStream temp = new DataOutputStream(fo);
    // int m = 32;
    // temp.writeInt(m);
    catch (Exception wbih) {
    wbih.printStackTrace ();
    * intToWord converts an int to a word, where the return
    * value is stored in a 2-byte array.
    private byte [] intToWord (int parValue) {
    byte retValue [] = new byte [2];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
    return (retValue);
    * intToDWord converts an int to a double word, where the return
    * value is stored in a 4-byte array.
    private byte [] intToDWord (int parValue) {
    byte retValue [] = new byte [4];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
    retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
    retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
    return (retValue);
    class Writebmp
         public static void main(String args[])
              //Image img = Toolkit.getDefaultToolkit().getImage("jatin.bmp");
              try
              File filename = new File("jatin_test.bmp");
              BufferedImage image = ImageIO.read(filename);
              Graphics graphics = image.getGraphics();
              graphics.drawString("&#2313;&#2332;&#2327;&#2352;",10,30);
              Write1 w = new Write1();
              Image img = Toolkit.getDefaultToolkit().getImage("jatin_test.bmp");
              w.saveBitmap("jatin_test.bmp",img,200,200);
              catch (IOException e)
    System.err.println ("Unable to write to file");
    System.exit(-1);
    }

  • How to: Acquire an Image without IMAQ ?

    It's possible to acquire an image with a GigE Camera in a labwindows project without the 'IMAQ' Vision Acquisition Software ?
    I'm trying to make it with the include functions on "genicam.fp" module, but I don't know exactly how do it.
    Thanks 

    1. So I presume that you do not have the Vision Development Module, or wish to deploy without a Vision Run-Time Licence. These both include IMAQdx as well as the vision software.
    Yes, I have one license for the Vision Development Module, and  for many commercial projects, I use it ... but the problem is that I need to develop a non-commercial project and can't assume the cost for a new license.
    2. Most GigE camera suppliers provide an SDK that will allow you to access the camera. I suggest you go to your camera suppler's website. The cameras from NI are made by Basler, and their drivers and SDK's are here: http://www.baslerweb.com/Support_SW_Downloads-18498.html 
    Yes, my project is with a Basler Cam and  I already installed the Pulon SDK software.
    3. I have just done this myself with the Micro-Epsilon ScanControl laser line scanner. This uses a GigE interface; and there was suggestion in the Micro-Epsilon documentation that I could use IMAQdx and the NI vision tools. In fact it seemed easier to use the Micro-Epsilon DLL, so for this application I am not using NI-Vision or IMAQdx. I should note that while the Vision Run-Time licence is a pain, it is MUCH cheaper than anyone else's.
    I think the same, I finished the project with a commercial NI license, but in this moment I study the possibility of develop it with a non commercial license for the cause described in point 1 (economic)
    4. The alternative is to Google "open source gige camera sdk" This quickly turns up  https://wiki.gnome.org/Aravis This states "Aravis has been tested successfuly with Basler, AlliedVision, Smartek and Dalsa cameras. Please see the Cameras page". But you did Google before posting, didn't you?
    This option did not know, now I will.
    Thanks for all.
    PD: With the libraries of bassler for CVI Labwindows,  I got open and close the camera, the problem that I dont know exactly what function should I use for a simple capture and happen several errors.

Maybe you are looking for

  • Importing class definitons from files

    I have four generic classes: one for a singly linked list, one for the SLL Node, one for a Binary Tree, and one for a Binary Tree node, each of the classes have methods in their respective file. Is it possible to import these class definitions by usi

  • Require that this column contains information is missing

    I've got a Risks List on SharePoint 2007, as part of Project Server 2007 ,within which there is a column that I want to change its status to "required". I went to Settings --> List Settings, under Columns I clicked on the column name to edit. But und

  • System error in program CL_RSR and form GET_CHANMID-02-

    System error in program CL_RSR and form GET_CHANMID-02- (see long text) Message no. BRAIN299 Diagnosis This internal error is an intended termination resulting from a program state that is not permitted. Procedure Analyze the situation and inform SAP

  • Server 2012 Patch and Certificate Problems - GPO Breaking Server

    We built some Server 2012 R2 servers, the first ones in our organization. We were able to install SQL 2012 with no issues. We are required by organization policy to harden our computers. But when tried to install WSUS patches we began noticing severa

  • I can not open my app store application

    I can not update my app store app and it crashes every time I try.