I want to convert pictures to 1 bit image

dir sir;
i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
can i use java to do that?
and if soo what method and package and function helps me to do that .
if you can provide me with simple code i will be thankfull.
beast regards.

Hi,
if you have vision, you could use the functin IMAQ Image to Array to have a 2D array of the pixel values.
You can then compare pixel by pixel; if your images come from a camera, I would recommend to set a treshold of acceptance.
This is a time consuming solution anyway.
Alternative methods:
1) Make a subtraction of the two images, the resulting image will be the difference of them
2 ) Use IMAQ LogDiff function (operators palette)
3) Calculate the histogram of both image and compare the histogram reports
Good luck,
Alberto

Similar Messages

  • How to convert for 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Try using the IMAQ Cast Image function under Motion & Vision>>Vision Utilities>>Image Management>>IMAQ Cast Image.
    Regards,
    Steve

  • What happens to a 12-bit image in LabVIEW/IMAQ Vision?

    I'm using the DALSA DALSTAR 1M30 camera, and we are building a cable for it, and have not yet got it up and running, but I am already programming our application for it. I was wondering, since the IMAQ Vision VI's seem to pertain to 8-bit, 16-bit, and floating point images, I was wondering if they will work fine with a 12-bit image like the one from the 1M30 camera. I was also wondering, if they do work fine, what format the output of a VI like IMAQ ImageToArray will be. Will the 12-bit pixel values be converted into 16-bit?
    Thanks for the help.

    A 12 bit image is stored within IMAQ as a 16 bit image. Only routines that accept 16 bit images can be used for manipulating the image.
    The IMAQ WindDraw converts 16 bit images to 8 bit images for display, using the selected method. You can also manually convert to an 8 bit image for automatic thresholding and other routines that don't accept 16 bit images. For most applications, you will want to shift it 4 bits during conversion so the most significant bits are preserved.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How can I convert a string into an image

    I want to convert a string into an image.
    I want to know required steps for that.

    look at http://forum.java.sun.com/thread.jsp?forum=31&thread=194763
    drawString looks as something you might need

  • Want to convert 32 bit assembly code to 64 bit assembly

    hi
    Friends
    I want to convert 32 bit assembly code to 64 bit.
    extern "C" long sparc_atomic_add_32 (volatile long* p, long val);
    static void asm_code()
    asm(".align 8"); \
    asm(".global sparc_atomic_add_32"); \
    asm(".type sparc_atomic_add_32, #function"); \
    asm("sparc_atomic_add_32:");
    asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");
    asm(" ld [%o0], %l0"); // l0 = *p;
    asm(" add %l0, %o1, %l2"); // l2 = l0 + val
    asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);
    asm(" cmp %l0, %l2"); // does it match
    asm(" bne sparc_atomic_add_32");// if not try again
    asm(" nop"); // delay slot filler
    asm(" add %l2, %o1, %o0"); // set return code
    asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");
    asm("retl");
    asm("nop");
    }

    mickeyanton wrote:
    Adobe recommends going to a 32 bit Lightroom
    Adobe specifically recommended that to you personally?
    It makes far more sense to install 64 bit Lightroom on a 64 bit operating system.
    What problems are you having with 64 bit Lightroom?

  • I have pdf file with content along with background picture ... I want to convert the same pdf to .ep

    i have pdf file with content along with background picture ... I want to convert the same pdf to .epub how can i???

    If you're using Fluid Grid Layouts, none of these methods will work.  I think the very best you can do is determine the min-height required for desktops & tablets.  Mobile devices don't need min-height because those divisions will stack on top of each other.
    To illustrate with a working example,
    http://alt-web.com/FluidGrid/Fluid2.html
    The relevant CSS code:
    /* Special Rules for Tablets */
    @media only screen and (min-width: 481px) {
    .gridContainer >div {min-height: 255px;}
    /* Special Rules for Desktops */
    @media only screen and (min-width: 1025px) {
    .gridContainer >div {min-height: 325px;}
    Nancy O.

  • Convert picture imported to Word document with VBA

    I've Word documents that contain acronyms and a macro that searches the document for them so that they can be identified for an acronym table. So far, I can search a document's text and tables but not the pictures with the macro. I've found that if
    I manually select the picture, right click and select group->ungroup, I get a MsgBox with the message "This is an imported picture, not a group. Do you want to convert it to a Microsoft Office drawing object?" Selecting the yes button converts
    it into many Shapes objects that are then searchable.
    I've determined that the picture (object) type prior to conversion is msoPicture and that it gets converted to an msoCanvas object with many Shape objects on it.
    I've built a macro that can loop through various Canvas objects and then the Shape objects to find the acronyms. Unfortunately, I haven't been able to find a way to convert the image/object from msoPicture to msoCanvas in VBA. Does anyone know how to do
    this? Thanks.

    Hi,
    As far as I know, we can’t convert a picture to canvas through VBA.
    For that process through the UI, I think it add the canvas first, then add the picture to that canvas.
    For your requirement, you could add the canvas first, then add the picture to tat canvas.
    Sub NewCanvasPicture()
    Dim shpCanvas As Shape
    'Add a drawing canvas to the active document
    Set shpCanvas = ActiveDocument.Shapes _
    .AddCanvas(Left:=100, Top:=75, _
    Width:=200, Height:=300)
    'Add a graphic to the drawing canvas
    shpCanvas.CanvasItems.AddPicture _
    FileName:="C:\Program Files\Microsoft Office\" & _
    "Office\Bitmaps\Styles\stone.bmp", _
    LinkToFile:=False, SaveWithDocument:=True
    End Sub
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Converter pictures and videos files to jpg and mpeg

    Do you know a safety software o freeware to convert pictures and videos files to jpg and mpeg? to use in my desktop with windows?

    A backup stores the data in the location shown in the following link: Create and delete iPhone, iPad, and iPod touch backups in iTunes
    Note, however that backup files are stored in a format that is meant for use only in restoring to an iOS device. They are not a way for you to view the photos on the computer.
    If you want to save the photos to the computer and be able to view them there, the following has instructions: Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC
    You can also use PhotoStream My Photo Stream FAQ or 3rd party apps such as http://www.photosync-app.com

  • How to convert color image(24 bit) YUV 4:2:2 to gray scale 8 bit image

    I am using sony DFW-X700 color camera for one of vision applications.Does NI Compact Vision System(CVS) support YUV 4:2:2 format(8 bit each).I want to do gray scale processing, so i need to convert the YUV color into gray scale (8-bit) in the software(like Labview). Please suggest us how to do this conversion for better gray scale image clarity from color.

    In YUV color space, Y represents the gray scale; in RGB color space, R=G=B represents gray scale. You can simply set R=G=B=Y, to convert YUV to RGB. If the original color depth is 24 bit, then the result is 24 bit too.
    You can create gray scale color table like this:
    array size = 256;
    [0] = 0x000000;
    [1] = 0x010101;
    [2] = 0x020202;
    [255] = 0xFFFFFF;
    To convert 24 bit gray scale to 8 bit, check every pixel in 24 bit image to find the array index according to the color table, and replace the pixel with array index.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Converting pictures into PDF files

    How do I convert pictures into PDF files, is this possible?

    If you want to use acrobat reader, you have to pay for it.
    So, I use other free or cheap apps to do so =>
    * powerpdf
    * dragonprinter (draakprinter in dutch)
    * writepdf
    * scanapp (to convert parts of a picture)
    I even think that almost every scan-app can convert pictures into pdf's.

  • Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site.

    I opened up my muse site and somehow Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site. It makes me a bit worried.
    Here's what I've done since opening the site without a problem:
    I used the in-browser editing feature to change simple numbers on a single page - the home page - I got the regular notice to review and update - that worked with no problems.
    I have added several Muse-Themes widgets/templates/tools
    I've had a computer crash that required a hard re-boot to correct, Muse and this site were running at the time. (now that I think about it, this might be the problem)
    I don't recall whether Muse CC has updated in the last week (since it worked correctly for me)
    I run anti-malware software and virus protection - both of which run in realtime scanning internet connection, file downloads, etc.
    Can someone assure me that everything is OK - that sometimes this happens?
    My next step as I leave here is to login to my site and check file sizes to see if there's a significant difference...yes, I'm worried about viruses - I have great software but all software can be overcome by determined (and annoying) people.
    thanks for your attention to this and hopefully everything is just fine if a bit glitchy. I can work with glitchy :-)

    Thank you Akshay for replying so quickly. Lots of work to do then on my part.
    Is there a list of CC apps that have been updated to their 2014 versions, so that I can check that I have all the updates?
    Many thanks,
    David Perkins
    (Brighton, UK)

  • Convert 256-bit image to one-bit

    I want to convert 256-bit bmp image to 1-bit.So please help me.

    armalcolm wrote:
    OK here's a frameworkUmm... Drawing onto a BI of TYPE_BYTE_BINARY should achieve this in just a few lines. The API says
    When color data is stored in an image of this type, the closest color in the colormap is determined by the IndexColorModel and the resulting index is stored. Approximation and loss of alpha or color components can result, depending on the colors in the IndexColorModel colormap.
    Of course, if this is homework then OP will probably be required to reinvent the wheel.
    db

  • I want to convert a movie that I've created in iMovie from PAL to NTSC.

    I've created a large movie using PAL but now want to convert it to NTSC to send to my family in Canada.  It took ages to create.  Is there an easy way of doing the conversion?  I don't want to have to do it all again. 

    Hi
    A. Using iMovie'08 to 11 - Will not give 100% result - as You want interlaced SD-Video = NTSC
    B. Converting from PAL to NTSC - is Never 100% loss free - but You lose a bit
    I use iMovie HD6 or FinalCut - as they can deliver 100% over to program that converts.
    • iMovie and iDVD can convert - BUT RESULT WILL BE Very POOOOR.
    My notes on How I do it
    PAL to NTSC or NTSC to PAL
    A. Copying commercial DVDs - No Not possibly at all - Not even legal to discuss. 
    B. Home made DVDs (DVDs without copy protection)
    C. Movies from iMovie or FinalCut
    • Save as full quality QuickTime .mov and convert this with JES_Deinterlacer  (free on Internet)
    NTSC ---> PAL.
    • Most often not necessary - Most stand alone PAL DVD-players playback NTSC
    (if TV is old in BL/W)
    PAL ---> NTSC.
    • If played on Mac - not necessary AT ALL
    • If on NTSC DVD-player - CONVERSION IS NEEDED - nearly no Stand alone NTSC-DVD-players
    playback PAL at all.
    To do this You need to convert the PAL DVD to streaming.DV or full quality QuickTime .mov
    • I use Roxio Toast™ to do this (There are no free converter)
    • JES_Deinterlacer  (free on Internet) to convert to NTSC
    • Set up an NTSC project (29.97fps or 30) in iDVD and import then burn
    I burn to
    • Verbatim DVD-R
    • Set down burn speed in iDVD to x1 or x4 recommended by many
    • Secure a minimum of 25Gb free space on internal boot hard disk before burning (IMPORTANT)
    PAL is 25 fps and an analog TV standard of 625 lines
    NTSC is 29.97 fps and 520 lines
    NTSC (29.97fps) 520 lines - about 640x480 pixels (square) 720x480 rectangular (narrow) pixels
    PAL  (25 fps)   625   lines - about 768x576 pixels (square) 720x576 rectangular (narrow) pixels
    to use a photo 702x480 resp 576 then add 9 pixels on each side to add together as 720
    If iDVD hangs on PAL or NTSC.
    Bengt W wrote
    Deleting iDVD pref. file - should return You into NTSC mode.
    Yes iDVD can switch to PAL - BUT as You see with a rather lousy result.
    a. Need to convert to PAL - most often not - Most PAL-player can playback NTSC
    and on a fairly new TV in color. (old TV in Bl/W)
    (Other way around - from PAL to NTSC most often a must - few NTSC-player can use PAL)
    b. IF MUST - then use JES_Deinterlacer to do this conversion - so much better and free.
    My list on this (or rather PAL --> NTSC - just think the other way around)
    I have to send it overseas
    That too can be a problem. As USA = NTSC = 29.97fps and EU = PAL = 25fps.
    DO Not let iMovie or iDVD do this conversion from one to the other - Result will be Very
    BAD
    I save the movie as a full quality QuickTime .mov file then I use JES_Deinterlacer to do the conversion - then I cont. in iMovie or iDVD with project set accordingly.
    JES_Deinterlacer is free on Internet and there are Pro applications but not that much better and costs are astronomical.
    PAL-DVDs - don't play in US
    NTSC-DVDs - usually plays well in EU
    All plays well on a Mac - What ever.
    Allosaurus writes
    Thank you SDMacuser. I dumped all the plist icons with no result, and was getting pretty plist off when it occurred to me to delete all the previous dvd.proj files. Bingo. That did the trick. So thank you for all your help and the additional information you provided.
    Yours Bengt W

  • I have the CS5 Master Collection for Windows, but want to convert my license to a Mac.

    I have the CS5 Master Collection for Windows, but want to convert my license to a Mac. I already have the CS5 Suite installed on the Mac. What do I need to do from here? I tried reading up a little bit on this and saw some people said in order to do this you would also need to upgrade your product version. Please tell me this is not the case, as that would be the dumbest and most frustrating customer service move ever to already faithful Adobe purchasers... 
    Thanks for any help you can give!

    in order to do this you would also need to upgrade your product version. Please tell me this is not the case, as that would be the dumbest and most frustrating customer service move ever to already faithful Adobe purchasers...
    Unfortunately, upgrading to CS6 or joining the Cloud are your only options.
    Platform swapping (Win to Mac and vIce versa) is only available to CS6 owners.
    Order product | Platform, language swap

  • Need to convert pictures and documents to PDF

    need to convert pictures and documents to PDF

    Hi BodyWhys,
    Please do below if you are using Adobe Reader:
    1. Launch Reader
    2. Select "Tool" at right pane
    3. Sign in with your Adobe ID and password after clicking "Sign in" under "Tools"
    4. Select "Create PDF" tab
    5. Click "Select File" button
    6. Select your picture or document (please see more information on supported file at http://helpx.adobe.com/acrobat-com/kb/using-createpdf.html#main_Convert_a_file_to_PDF)
    7. Click "Convert" button
    8. Click "View PDF File in Reader" after converting the file
    Please do below if you are using online service
    1. Login to https://createpdf.acrobat.com/signin.html with your Adobe ID and password
    2. Select "Convert to PDF"
    3. Click "Select Files" button
    4. Click "Download" button in progress bar after convert is complete.
    Please let me know if you have more quetions.
    thank you.
    hisami

Maybe you are looking for