Binary image

I want to convert a image to a binary image(only black& white)
I use this code to convert a color image to a grayscale image:
public static BufferedImage applyGrayscaleFilter(BufferedImage aImage)
BufferedImage tmpBufImage = aImage;
try
for (int i = 0; i < aImage.getWidth(); i++) {
for (int j = 0; j < aImage.getHeight(); j++) {
Color c = new Color(aImage.getRGB(i, j));
int r = c.getRed();
int g = c.getGreen();
int b = c.getBlue();
//formula for grayscale
int gray = (int) (0.2989 * r + 0.5870 * g + 0.1140 * b);
c = new Color(gray, gray, gray);
tmpBufImage.setRGB(i, j, c.getRGB());
catch(Exception ex)
return null;
return tmpBufImage;
I need help for convertin this image(grayscale) to binary image (b&w - only 1 and 0).

No need to do it yourself, BufferedImage will do it for you:
Image oldImage= ...;
BufferedImage newImage=new BufferedImage(oldImage.getWidth(null),
    oldImage.getHeight(null), BufferedImage.TYPE_BYTE_BINARY);
newImage.getGraphics().drawImage(image, 0, 0, null);

Similar Messages

  • How to display a binary image in a webpage?

    Hi,
    I want to display a binary image in a webage. The image has been stored in a DB as binary format. I am using servlet. How could I retrieve it and display it on a webpage? Could you give me some suggestions?
    I have read some metrial about JAI, the method 'createImageEncoder( )', which seems very helpful! I am on the right way, right? Thanks for your any comments!
    Best Regards,
    Hai

    Here is my idea to display the pic on the webpage:
    The pic is stored in DB as binary, after retrieving it, the binary data will be converted to JPEG pic. Then, the pic will be saved to the local machine automaticly. After that, I get the pic's SRC, and use html display it.
    My code is as follow (not completed), some errors in it.     public static String getPayoffSRC(Services serv, long fileId)
                                                                    throws FileNotFoundException,
                                                                  DBException,
                                                                  DbFileNotFoundException,
                                                              IOException {
            BufferedImage buffy = new BufferedImage(300, 400,
                                                        java.awt.image.BufferedImage.TYPE_INT_RGB);   
            FileOutputStream out = new FileOutputStream(serv.getFileManager().getFileDb(fileId).getFileName());
            JPEGImageEncoder jencoder = JPEGCodec.createJPEGEncoder(out);
            JPEGEncodeParam enParam = jencoder.getDefaultJPEGEncodeParam(buffy);
            enParam.setQuality(1.0F, true);
            jencoder.setJPEGEncodeParam(enParam);
            jencoder.encode(buffy);
            out.close();
            return Pic's SRC,
        }

  • PDF binary image display on smartforms?

    Hi guys,
    I'm very new to this but i hope i can explain it correctly.
    Lets say right now l have some pdf stored in SAP(Service Contract for example) and we're reading them as binary image files right?
    Is it possible to retrieve such binary image and display them in an existing smartform?
    I hope i'm explaining the right way...this has something to do with DMS ??
    Below are some codes to further help in my questions.
    ALL FUNCTION 'SCMS_UPLOAD'
        EXPORTING
          filename       =  '/usr/sap/XXXX/XXXXXX/test.pdf'
          binary         = 'X'
          frontend       = ' '
    *   MIMETYPE       =
        IMPORTING
          filesize       = size
        TABLES
          data           = file_data
    * EXCEPTIONS
    *   ERROR          = 1
    *   OTHERS         = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      DATA: BEGIN OF content_bin OCCURS 1,
              line TYPE SDOK_SDATX,
            END   OF content_bin.
      DATA: BEGIN OF content_txt OCCURS 1,
              line TYPE sdokcntasc,
            END   OF content_txt.
      CALL FUNCTION 'SCMS_DOC_READ'
        EXPORTING
          mandt                       = sy-mandt
          stor_cat                    = ' '
          crep_id                     = crep_id
          doc_id                      = doc_id
        TABLES
    *   ACCESS_INFO                 =
          content_txt                 = content_txt
          content_bin                 = content_bin
    * EXCEPTIONS
    *   BAD_STORAGE_TYPE            = 1
    *   BAD_REQUEST                 = 2
    *   UNAUTHORIZED                = 3
    *   COMP_NOT_FOUND              = 4
    *   NOT_FOUND                   = 5
    *   FORBIDDEN                   = 6
    *   CONFLICT                    = 7
    *   INTERNAL_SERVER_ERROR       = 8
    *   ERROR_HTTP                  = 9
    *   ERROR_SIGNATURE             = 10
    *   ERROR_CONFIG                = 11
    *   ERROR_FORMAT                = 12
    *   ERROR_PARAMETER             = 13
    *   ERROR                       = 14
    *   OTHERS                      = 15
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    Anyone? Please its kinda urgent.
    Basically, If I understand correctly, what I have now is are converted binary data from the PDF document?
    Is there a way to take these data and displaying it meaningfully(may be through some other processes like conversion again) in a smartform? Is this possible?

  • Can we load generic binary image in Oracle spatial database

    hi i am new to this topic. so kindly help me out.
    can we store generic binary image in Oracle 10g spatial database?
    generic i mean there is no header information.

    hi everybody,
    thanks in advance. i am in little bit confusion. actually i am new to oracle 10g spatial db concept and image processing. i have to decide whether to store DEM & ORTHO image in Oracle 10g spatial database. or using BLOB to store these images. i have to design physical as well as logical database to store both above mentioned images.
    i don't have much knowledge about DEM & ORTHO image.
    i don't know what to do. even though i have started some of the Oracle 10g spatial concepts. i would like to know can i also use oracle intermedia for storing these images (ORTHO & DEM images).
    looking for help
    thanks
    Ajay

  • MVC Display Binary Image from ViewBag

    I am having problem when displaying the binary image in MVC view. I stored images in database as binary format and then assigned to ViewBag in Controller. How do I assign viewbag data to image in View?
    Controller
    ItemBO mibo = new ItemBO();
    ViewBag.Picture1 = Convert.ToByte(mibo.GetImage(1));
    View
    var elem = document.createElement("img");
    elem.setAttribute("src", @ViewBag.Picture1);
    elem.setAttribute("style", "height:100%");
    elem.setAttribute("alt", "Image");
    document.getElementById("mydiv").appendChild(elem);
    Above code doesn't work as I expected. Any help would be appreciated.

    MVC section is at the below link.
    http://forums.asp.net/

  • Calculate the perimeter of object in binary image how!!!!!!!

    Hi 
     I try to use labview to find area and perimeter of object in binary using vision function
    for the area the labview find it in pixel]
    but for   perimeter I have problem I read from ni.com vision manual this words
    http://zone.ni.com/reference/en-XX/help/372916M-01​/nivisionconcepts/particle_measurements/
    """Length of a boundary of a region. Because the boundary of a binary image is comprised of discrete pixels, NI Vision subsamples the boundary points to approximate a smoother, more accurate perimeter. Boundary points are the pixel corners that form the boundary of the particle. Refer to the introduction for an illustration of pixel corners."""
    what is the problem I really did not understand what he mean::"""Because the boundary of a binary image is comprised of discrete pixels""
    can any one explain to us the case please and who will lv find the  perimeter
    best regards
    hi ?Q>

    Hornless.Rhino wrote:
    mangood wrote:
    what is the problem I really did not understand what he mean::"""Because the boundary of a binary image is comprised of discrete pixels""
    can any one explain to us the case please and who will lv find the  perimeter
    best regards
    Take the following image on the left. You can see it is quite jagged.
    Since pixels are square/rectangular you cannot have a perfectly straight edge on a line that is not horizontal or vertical.
    But looking at how the edge of the object actually is, the jaggedness can be "smoothed out" and hence help determine what the perimiter should be were it perfectly smooth.
    thank you 
    do you mean that lv do a low pass filter for image before he caculate the  perimeter?????
    finally which connectivity is best 4 or 8 for finding the perimeter??? or which algorthem used by lv to find the  perimeter???
    best regards
    hi ?Q>

  • How to export binary images

    I am a neuroscientist developing a brain atlas and am using illustrator to produce the images needed.
    Basically I need to open up an .ai file that contains the brain image. I need to fill that with black, remove parts of it
    (haven't figured out how to do that yet) and export it at a specific location within the canvas and make the canvas a specific size.
    I need to export that as a .jpeg or .gif with only 2 colors. I then need to repeat this process 700 times.
    Is there a way to remove a part of an image quickly?
    Is there any way to export with only 2 colors? (binary image)
    Any ideas would be greatly appriciated.

    1- The images are in vector format
    2- I am using version 14 but will be using version 15 when my lab gets it.
    3- I don't have photoshop, though I have used it and fireworks a long time ago
    4-
    http://books.google.ca/books?id=0prYfdDbh58C&printsec=frontcover&dq=paxinos+watson&source= bl&ots=-5jsGV_LAk&sig=fV18n7RLuPTgv9Y7rpHJ93cyi2I&hl=en&ei=ttcGTIrvCoW0lQeh0Yi-Cg&sa=X&oi= book_result&ct=result&resnum=4&ved=0CCkQ6AEwAw#v=onepage&q&f=false
    or try brainmaps.org
    A brain atlas is an atlas of the brain. In my case a rat brain. Not much different than an atlas you would be familiar with. It contains images and coordinates showing where areas and structures are. Since the brain is 3D a brain atlas is also in 3D. It is usually organized by having slices (think loaf of bread) placed one after another on separate pages of a book. We get the pictures in the atlas by staining the brain with chemicals that make it change colors. Then we cut it into sections on a braincutting machine and put it on a microscope slide to take a picture.
    In our lab we use electrodes to listen in on what brain cells are doing. This brain atlas will allow us to show where our electrode tips were in the brain and what areas we were targeting. It is mainly for presentations and teaching.
    I will be using illustrator to produce binary images of the essential stuff in exactly the right places. Once I have those I have some computer code that will stack those images together to make a 3D brain.
    My biggest problem is exporting with only 2 colors in the entire image. I should be able to use my programming knowledge to take care of everything else.
    I have never used any graphic vector software before so any help I can get is greatly appreciated.

  • Change 8-bit binary image back to 8-bit grayscale

    Can some one help me please in NI vision how to convert the image back to grayscale after I did my thresholding by using 'IMAQ Local threshold' from a 8-bit grayscale to a binary image but the problem now I don't know how to convert it back. I need someone help thank you.

    I'm afraid I haven't got the toolkit installed on my machine at the moment
    If I remember correctly you don't need to convert the image at all. On the last vision project I worked on we did a colour capture with a camera, converted it colour to greyscale for certain part of the anaylsis, (other parts we just did on the colour image), and then when we had found the ROI, we drew rectangles and circles etc on the colour image so the operator could see in colour! (just make sure to open a image reference to work on if you do this...
    If you really want help, I would advise making a simple VI containing the basic principles of what you want to do - work from an image constant on the BD, then post it in this thread and people will be able to see where you have got to and give you a quick pointer much faster! (fewer files = easier to work with)
    James

  • Binary images description not available

    I scanned some pages from a book on my Epson scanner which converted them to jpg files. I then tried to import those images into iPhoto to clean up the edges but it won't import. Every time the program crashes. I've restarted and repaired permissions. Below are the problem details that are sent to Apple. What stood out in my eye was the phrase, "Binary images description not available".
    Could someone tell me why this is happening and what I might be able to do to fix it.
    Cheers,
    sws
    Process: iPhoto [194]
    Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier: com.apple.iPhoto
    Version: 8.1 (8.1)
    Build Info: iPhotoProject-4150000~4
    Code Type: X86 (Native)
    Parent Process: launchd [127]
    Interval Since Last Report: 2388 sec
    Crashes Since Last Report: 3
    Per-App Interval Since Last Report: 2068 sec
    Per-App Crashes Since Last Report: 3
    Date/Time: 2009-09-16 15:17:13.819 +0900
    OS Version: Mac OS X 10.5.8 (9L31a)
    Report Version: 6
    Anonymous UUID: 60AE4FE7-3128-40A8-9A04-DEF7D0037A59
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x00000000018c11b8
    Crashed Thread: Unknown
    Error Formulating Crash Report:
    Called memoryAtAddress: 0x1000, which is in an unmappable portion of [0x0 -> 0xffffffffffffffff] in PID# 194.
    0x934bffeb
    0x94a0de3b
    0x00096e60
    0x00090a67
    0x00090174
    0x000900df
    0x000a57aa
    0x000a54be
    0x000a0b52
    0x000038f5
    0x0000a992
    0x00002ea4
    0x000029f1
    0x94e9d03b
    0x0000c254
    0x94e71155
    0x94e71012
    Backtrace not available
    Unknown thread crashed with X86 Thread State (32-bit):
    eax: 0x2131fe00 ebx: 0x00000000 ecx: 0x2132093c edx: 0x018c11b8
    edi: 0xa0100c20 esi: 0x16aa0604 ebp: 0xb0926168 esp: 0xb09260d0
    ss: 0x0000001f efl: 0x00010246 eip: 0x9083a834 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x018c11b8
    Binary images description not available

    Same problem under both the administrators account and the new one.
    Under the System Configuration tab on the Problem Report this is what it says
    Model: iMac7,1, BootROM IM71.007A.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB
    Graphics: kHW_ATIr600M76Item, ATI,RadeonHD2600, spdisplayspciedevice, 256 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.91.21)
    Bluetooth: Version 2.1.8f2, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: WDC WD3200AAJS-40VWA0, 298.09 GB
    Parallel ATA Device: MATSHITADVD-R UJ-875
    USB Device: Built-in iSight, (null) mA
    USB Device: USB2.0 Hub, (null) mA
    USB Device: BUFFALO INC. USB-SATA Bridge, (null) mA
    USB Device: BUFFALO INC. USB-SATA Bridge, (null) mA
    USB Device: LHD USB Device, (null) mA
    USB Device: USB-SATA Bridge, (null) mA
    USB Device: USB2.0 Hub, (null) mA
    USB Device: GV-MACTV, (null) mA
    USB Device: Apple Optical USB Mouse, (null) mA
    USB Device: Keyboard Hub, (null) mA
    USB Device: Apple Keyboard, (null) mA
    USB Device: USB MFP, (null) mA
    USB Device: IR Receiver, (null) mA
    USB Device: Bluetooth USB Host Controller, (null) mA
    the Problem Detailas are as follows
    Process: iPhoto [1940]
    Path: /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier: com.apple.iPhoto
    Version: 8.1 (8.1)
    Build Info: iPhotoProject-4150000~4
    Code Type: X86 (Native)
    Parent Process: launchd [127]
    Interval Since Last Report: 35054 sec
    Crashes Since Last Report: 12
    Per-App Interval Since Last Report: 350 sec
    Per-App Crashes Since Last Report: 12
    Date/Time: 2009-09-17 01:11:33.032 +0900
    OS Version: Mac OS X 10.5.8 (9L31a)
    Report Version: 6
    Anonymous UUID: 60AE4FE7-3128-40A8-9A04-DEF7D0037A59
    Exception Type: EXCBADACCESS (SIGSEGV)
    Exception Codes: KERNINVALIDADDRESS at 0x00000000018a100c
    Crashed Thread: 31
    Thread 0:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446aa8 0 + 2470734504
    4 ??? 0x954db2ac 0 + 2504897196
    5 ??? 0x954db0c5 0 + 2504896709
    6 ??? 0x954daf39 0 + 2504896313
    7 ??? 0x93f076d5 0 + 2482009813
    8 ??? 0x93f06f88 0 + 2482007944
    9 ??? 0x93efff9f 0 + 2481979295
    10 ??? 0x93ecd1d8 0 + 2481770968
    11 ??? 0x00123e6a 0 + 1195626
    12 ??? 0x0000354e 0 + 13646
    Thread 1:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x91370dbc 0 + 2436304316
    4 ??? 0x91370bd0 0 + 2436303824
    5 ??? 0x91370b35 0 + 2436303669
    6 ??? 0x01362201 0 + 20324865
    7 ??? 0x01350363 0 + 20251491
    8 ??? 0x9132adfd 0 + 2436017661
    9 ??? 0x9132a9a4 0 + 2436016548
    10 ??? 0x94e71155 0 + 2498171221
    11 ??? 0x94e71012 0 + 2498170898
    Thread 2:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x91370dbc 0 + 2436304316
    4 ??? 0x91370bd0 0 + 2436303824
    5 ??? 0x91370b35 0 + 2436303669
    6 ??? 0x01362201 0 + 20324865
    7 ??? 0x01350363 0 + 20251491
    8 ??? 0x9132adfd 0 + 2436017661
    9 ??? 0x9132a9a4 0 + 2436016548
    10 ??? 0x94e71155 0 + 2498171221
    11 ??? 0x94e71012 0 + 2498170898
    Thread 3:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446aa8 0 + 2470734504
    4 ??? 0x9135f3d5 0 + 2436232149
    5 ??? 0x013518a5 0 + 20256933
    6 ??? 0x9132adfd 0 + 2436017661
    7 ??? 0x9132a9a4 0 + 2436016548
    8 ??? 0x94e71155 0 + 2498171221
    9 ??? 0x94e71012 0 + 2498170898
    Thread 4:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x00505a15 0 + 5265941
    3 ??? 0x9132adfd 0 + 2436017661
    4 ??? 0x9132a9a4 0 + 2436016548
    5 ??? 0x94e71155 0 + 2498171221
    6 ??? 0x94e71012 0 + 2498170898
    Thread 5:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446aa8 0 + 2470734504
    4 ??? 0x96698264 0 + 2523497060
    5 ??? 0x94e71155 0 + 2498171221
    6 ??? 0x94e71012 0 + 2498170898
    Thread 6:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x91372932 0 + 2436311346
    3 ??? 0x005115ae 0 + 5313966
    4 ??? 0x00510dcc 0 + 5311948
    5 ??? 0x9132adfd 0 + 2436017661
    6 ??? 0x9132a9a4 0 + 2436016548
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 7:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x91372932 0 + 2436311346
    3 ??? 0x005115ae 0 + 5313966
    4 ??? 0x00510dcc 0 + 5311948
    5 ??? 0x9132adfd 0 + 2436017661
    6 ??? 0x9132a9a4 0 + 2436016548
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 8:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x91370dbc 0 + 2436304316
    4 ??? 0x91370bd0 0 + 2436303824
    5 ??? 0x91370b35 0 + 2436303669
    6 ??? 0x006c4132 0 + 7094578
    7 ??? 0x0069f0f4 0 + 6942964
    8 ??? 0x006c0953 0 + 7080275
    9 ??? 0x9132adfd 0 + 2436017661
    10 ??? 0x9132a9a4 0 + 2436016548
    11 ??? 0x94e71155 0 + 2498171221
    12 ??? 0x94e71012 0 + 2498170898
    Thread 9:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x962a4d96 0 + 2519354774
    4 ??? 0x962a4b76 0 + 2519354230
    5 ??? 0x906d5aa2 0 + 2423085730
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 10:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x962a4d96 0 + 2519354774
    4 ??? 0x962a4b76 0 + 2519354230
    5 ??? 0x962cd1d8 0 + 2519519704
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 11:
    0 ??? 0x94e8f6fa 0 + 2498295546
    1 ??? 0x94e71155 0 + 2498171221
    2 ??? 0x94e71012 0 + 2498170898
    Thread 12:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x91691a09 0 + 2439584265
    3 ??? 0x94e71155 0 + 2498171221
    4 ??? 0x94e71012 0 + 2498170898
    Thread 13:
    0 ??? 0x94e402ce 0 + 2497970894
    1 ??? 0x94e722c6 0 + 2498175686
    2 ??? 0x94eb7539 0 + 2498458937
    3 ??? 0x90849ed7 0 + 2424610519
    4 ??? 0x94e71155 0 + 2498171221
    5 ??? 0x94e71012 0 + 2498170898
    Thread 14:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446aa8 0 + 2470734504
    4 ??? 0x9138e520 0 + 2436424992
    5 ??? 0x9132adfd 0 + 2436017661
    6 ??? 0x9132a9a4 0 + 2436016548
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 15:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446b04 0 + 2470734596
    4 ??? 0x92222e17 0 + 2451713559
    5 ??? 0x962c4057 0 + 2519482455
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 16:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446b04 0 + 2470734596
    4 ??? 0x92222f90 0 + 2451713936
    5 ??? 0x962c4057 0 + 2519482455
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 17:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x962c5e83 0 + 2519490179
    3 ??? 0x962a4d6a 0 + 2519354730
    4 ??? 0x962c5b00 0 + 2519489280
    5 ??? 0x9222df72 0 + 2451758962
    6 ??? 0x962c4057 0 + 2519482455
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 18:
    0 ??? 0x94e402e6 0 + 2497970918
    1 ??? 0x94e722af 0 + 2498175663
    2 ??? 0x94e73b33 0 + 2498181939
    3 ??? 0x962a4d96 0 + 2519354774
    4 ??? 0x962c5b00 0 + 2519489280
    5 ??? 0x9222febc 0 + 2451766972
    6 ??? 0x962c4057 0 + 2519482455
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 19:
    0 ??? 0x94e709c6 0 + 2498169286
    1 ??? 0x94e71155 0 + 2498171221
    2 ??? 0x94e71012 0 + 2498170898
    Thread 20:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e47236 0 + 2497999414
    2 ??? 0x93f6dbf1 0 + 2482428913
    3 ??? 0x9132adfd 0 + 2436017661
    4 ??? 0x9132a9a4 0 + 2436016548
    5 ??? 0x94e71155 0 + 2498171221
    6 ??? 0x94e71012 0 + 2498170898
    Thread 21:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x00505a15 0 + 5265941
    3 ??? 0x9132adfd 0 + 2436017661
    4 ??? 0x9132a9a4 0 + 2436016548
    5 ??? 0x94e71155 0 + 2498171221
    6 ??? 0x94e71012 0 + 2498170898
    Thread 22:
    0 ??? 0x94e821fa 0 + 2498241018
    1 ??? 0x931837b5 0 + 2467837877
    2 ??? 0x94e7837f 0 + 2498200447
    3 ??? 0x94e78325 0 + 2498200357
    4 ??? 0x94e7d3bd 0 + 2498220989
    5 ??? 0x9319208d 0 + 2467897485
    6 ??? 0x93194d00 0 + 2467908864
    7 ??? 0x9319576c 0 + 2467911532
    8 ??? 0x00518341 0 + 5342017
    9 ??? 0x005188c4 0 + 5343428
    10 ??? 0x0051a36f 0 + 5350255
    11 ??? 0x94e71155 0 + 2498171221
    12 ??? 0x94e71012 0 + 2498170898
    Thread 23:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x94e64ce9 0 + 2498120937
    3 ??? 0x9134b453 0 + 2436150355
    4 ??? 0x00513eb9 0 + 5324473
    5 ??? 0x0051244c 0 + 5317708
    6 ??? 0x00519378 0 + 5346168
    7 ??? 0x0051a36f 0 + 5350255
    8 ??? 0x94e71155 0 + 2498171221
    9 ??? 0x94e71012 0 + 2498170898
    Thread 24:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x0051ab92 0 + 5352338
    3 ??? 0x00518303 0 + 5341955
    4 ??? 0x005188c4 0 + 5343428
    5 ??? 0x0051a36f 0 + 5350255
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 25:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x0051ab92 0 + 5352338
    3 ??? 0x00518303 0 + 5341955
    4 ??? 0x005188c4 0 + 5343428
    5 ??? 0x0051a36f 0 + 5350255
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 26:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x0051ab92 0 + 5352338
    3 ??? 0x00518303 0 + 5341955
    4 ??? 0x005188c4 0 + 5343428
    5 ??? 0x0051a36f 0 + 5350255
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 27:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x0051ab92 0 + 5352338
    3 ??? 0x00518303 0 + 5341955
    4 ??? 0x005188c4 0 + 5343428
    5 ??? 0x0051a36f 0 + 5350255
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 28:
    0 ??? 0x94e4746e 0 + 2497999982
    1 ??? 0x94e71dcd 0 + 2498174413
    2 ??? 0x0051ab92 0 + 5352338
    3 ??? 0x00518303 0 + 5341955
    4 ??? 0x005188c4 0 + 5343428
    5 ??? 0x0051a36f 0 + 5350255
    6 ??? 0x94e71155 0 + 2498171221
    7 ??? 0x94e71012 0 + 2498170898
    Thread 29:
    0 ??? 0x94e40286 0 + 2497970822
    1 ??? 0x94e47a7c 0 + 2498001532
    2 ??? 0x93445e7e 0 + 2470731390
    3 ??? 0x93446b04 0 + 2470734596
    4 ??? 0x92b735cd 0 + 2461480397
    5 ??? 0x9132adfd 0 + 2436017661
    6 ??? 0x9132a9a4 0 + 2436016548
    7 ??? 0x94e71155 0 + 2498171221
    8 ??? 0x94e71012 0 + 2498170898
    Thread 30:
    0 ??? 0x94e709c6 0 + 2498169286
    1 ??? 0x94e71155 0 + 2498171221
    2 ??? 0x94e71012 0 + 2498170898
    Thread 31 Crashed:
    0 ??? 0x94e410d5 0 + 2497974485
    1 ??? 0x93416805 0 + 2470537221
    2 ??? 0x934172ff 0 + 2470540031
    3 ??? 0x9132613e 0 + 2435998014
    4 ??? 0x1bfa144a 0 + 469374026
    5 ??? 0x1bf9de61 0 + 469360225
    6 ??? 0x1bf9ea33 0 + 469363251
    7 ??? 0x1bfc10ff 0 + 469504255
    8 ??? 0x1bfc135e 0 + 469504862
    9 ??? 0x9132adfd 0 + 2436017661
    10 ??? 0x9132a9a4 0 + 2436016548
    11 ??? 0x94e71155 0 + 2498171221
    12 ??? 0x94e71012 0 + 2498170898
    Thread 31 crashed with X86 Thread State (32-bit):
    eax: 0x018a1000 ebx: 0x94e41095 ecx: 0x00000000 edx: 0xa045f1a0
    edi: 0x00000020 esi: 0x00000000 ebp: 0xb10b19e8 esp: 0xb10b19b0
    ss: 0x0000001f efl: 0x00010217 eip: 0x94e410d5 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
    cr2: 0x018a100c
    Binary Images:
    0x8fe00000 - 0x8fe2db43 dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603> /usr/lib/dyld

  • What does "Binary Images" mean in a Crash Log

    I'm trying to understand the iPhone crash logs better. What does the section titled "Binary Images" mean?
    I got a crash log from my own iPhone and it has 45 lines in the Binary Images section. When a customer from the App Store submitted a crash report to me, it had 78!
    (Maybe they had a jailbroken device)
    Any help or links would be greatly appreciated!

    The Binary Images comprise a map that shows the starting and ending address of every module that was linked to your app at the time of the crash. For example, if your app requires a dynamic library named dylibx, and the object code for that library requires 1 Mbyte of memory, when your app starts up the library code will be "mapped" into the logical memory space of your app (Logical memory addresses aren't physical memory addresses; at runtime your app will be assigned some physical memory and the logical memory gets mapped onto that).
    So in the above example, the starting address of dylibx might be 0x30000000 so it's ending address would be 0x300FFFFF. You can use this info to find out which module owns the addresses given in other sections of the report. If you see 0x300ABCD you'll know that address is in dylibx.
    Here's a fairly readable article on how to interpret a crash log: [http://www.sealiesoftware.com/blog/archive/2008/09/22/objcexplain_So_you_crashed_in_objcmsgSend.html]. As you can see, it's possible to get some clues from a crash log even if you don't know anything about the system or the hardware.
    Hope that helps!
    \- Ray

  • Saving Binary Image with Overlay?

    Hi
    I'm having some issues saving an image with overlay information. I'm using IMAQ Find Circles to measure the radii of holes in a binary image. The hole data is then used with IMAQ Overlay Oval, to draw on ovals to highlight the circles detected. Works fine and the image is shown as expected in the image output on screen, pallette is set to binary. (See second image of 3, below)
    When I try and save the image to PNG I just get a blank (black) image. If I use the IMAQ Merge Overlay tool, I just get the green circles on the black (see last image of 3 below). Is there something I'm missing with pallettes/merging? Any help much appreciated. Snapshot of (messy) code attached.
    Solved!
    Go to Solution.
    Attachments:
    forum2.PNG ‏47 KB

    The problem is the binary image is all zeroes and ones.  A normal image goes up to 255, so a value of 1 looks black.
    One solution is to multiply the binary image by 255, which makes the image black and white.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Extract foreground from binary image

    hi
    i need help in java programming in java.
    i have a binary image
    by the code
    BufferedImage image = ImageIO.read(new File("f:/123.JPG"));
    BufferedImage bwImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_BYTE_GRAY);
    //bwImage.createGraphics().drawImage(image, 0, 0, null);
    BufferedImage bwImage1 = new BufferedImage(bwImage.getWidth(), bwImage.getHeight(), BufferedImage.TYPE_BYTE_BINARY);
    //bwImage1.createGraphics().drawImage(image, 0, 0, null);
    i need only foreground in color..can u give me the code for that..its urgent..

    If you want any color whatsoever, then you need to use a BufferedImage type that supports color. BufferedImage.TYPE_BYTE_BINARY wont do. In the example below I use BufferedImage.TYPE_INT_RGB. The foreground remains in color, while everthing else turns white.
    BufferedImage image = ImageIO.read(...);
            BufferedImage fgImage =                     //foreground image
                    new BufferedImage(image.getWidth(),image.getHeight(),
                    BufferedImage.TYPE_INT_RGB);
            for(int x = 0; x < fgImage.getWidth(); x++) {
                for(int y = 0; y < fgImage.getHeight(); y++) {
                    int rgbSrc = image.getRGB(x, y);
                    if(rgbSrc == rgbForeground) {
                        fgImage.setRGB(x,y,rgbForeground); //remain in color
                    }else{
                        fgImage.setRGB(x,y,-1);  //set white
            }Or are you looking for more of a Sin City effect where one thing remains in color and everything else is in grayscale?
    BufferedImage image = ImageIO.read(...);
            BufferedImage fgImage =                     //foreground image
                    new BufferedImage(image.getWidth(),image.getHeight(),
                    BufferedImage.TYPE_INT_RGB);
            for(int x = 0; x < fgImage.getWidth(); x++) {
                for(int y = 0; y < fgImage.getHeight(); y++) {
                    int rgbSrc = image.getRGB(x, y);
                    if(rgbSrc == rgbForeground) {
                        fgImage.setRGB(x,y,rgbForeground); //remain in color
                    }else{
                        int r = (rgbSrc>>16)&0xff;
                        int g = (rgbSrc>> 8)&0xff;
                        int b = (rgbSrc    )&0xff;
                        int lum = (int) (.299 * r + .587 * g + .144 * b);
                        //set to grayscale
                        fgImage.setRGB(x,y,(255<<24)|(lum<<16)|(lum<<8)|lum);
            }

  • Noise reduction in binary images

    I am new to labVIEW.
    I want to do niose reduction in binary images. Is this possible using LabVIEW IMAQ tools?
    Thanks in Advance
    Solved!
    Go to Solution.

    Best to attack some before going to binary and once in binary there is a binary filter that can filter on many different conditions such as area.  Check out the visions concepts manual from NI, it is a great resource for imaq functionality.  you might also post an image here or in the vision forums.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Retain color to foreground in binary image

    hi
    i need some help in the java.
    I have binary image whose foreground is white nad background is black by the following code
    BufferedImage image = ImageIO.read(new File("f:/123.JPG"));
    BufferedImage bwImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_BYTE_GRAY);
    BufferedImage fgImage = //foreground image
    new BufferedImage(bwImage.getWidth(),bwImage.getHeight(),
    BufferedImage.TYPE_BINARY_IMAGE);
    now i want to retain color to the foreground only..
    can anyone help me..pleaseeeeeee

    Here is my idea to display the pic on the webpage:
    The pic is stored in DB as binary, after retrieving it, the binary data will be converted to JPEG pic. Then, the pic will be saved to the local machine automaticly. After that, I get the pic's SRC, and use html display it.
    My code is as follow (not completed), some errors in it.     public static String getPayoffSRC(Services serv, long fileId)
                                                                    throws FileNotFoundException,
                                                                  DBException,
                                                                  DbFileNotFoundException,
                                                              IOException {
            BufferedImage buffy = new BufferedImage(300, 400,
                                                        java.awt.image.BufferedImage.TYPE_INT_RGB);   
            FileOutputStream out = new FileOutputStream(serv.getFileManager().getFileDb(fileId).getFileName());
            JPEGImageEncoder jencoder = JPEGCodec.createJPEGEncoder(out);
            JPEGEncodeParam enParam = jencoder.getDefaultJPEGEncodeParam(buffy);
            enParam.setQuality(1.0F, true);
            jencoder.setJPEGEncodeParam(enParam);
            jencoder.encode(buffy);
            out.close();
            return Pic's SRC,
        }

  • Multiplied by the binary image

    Hi every body
    I want  multiply a binary image to another image. another image is a withe image with 255 value across it. 
    please help me how can I?

    Hi Tandis,
    I don't see the sense in multiplying with a constant value, but well:
    convert your image to a 2D array, then use the standard multiply function…

Maybe you are looking for

  • Possible to show current time during call (not length of call)?

    when i am on a call, the lock screen shows the phone number and the length of time i have been on the call.  is it possible to change this, so that the lock screen shows me the current time (like it does when i am not on the phone)? currently, the on

  • Managed server is not starting -  Upgrading OBIEE from 11.1.1.6.2 to 11.1.1.7

    We are in the final stage of the installation. We are following the steps mentioned in http://www.rittmanmead.com/2013/04/upgrading-obiee-to-11-1-1-7/ . while running the  'Configuration Assistant' to update the BI domain the Managed server is not ge

  • Photoshop batch processing missing from menu

    Hi everyone: I'm having a terrible time today trying to process the 3500 images I've got. I set up an action to process them, but I can't figure out how to link them to be used through Bridge. I'm running Bridge CS5 with PS CS4, and I'm used to going

  • Created a book and now want to bring in other images to the strip below.

    I have created my draft book but I found 25 images were missing from the file I created the book from so I now want to bring in those images which are on a memory stick.  I tried importing and they are in a separate file in the catalog.  I can't seem

  • XSLTC parameters

    Hi! I was using xslt transformation with java 1.4.7 but now I have to use java 1.5.0. Some of my xslt files needs a run time parameter that works fine with java 1.4, but with java 1.5 a TransformerConfigurationException is thrown due the parameter is