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…

Similar Messages

  • 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

  • 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/

  • 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

  • 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 get the binary content of embedded Images

    Dear collegues,
    since a few weeks I am trying very hard to parse the XML-string of an interactive form containing embedded images. We need the binary content of this JPG-image files to store them in a database - just to have the possibility to generate the forms again with additional values which are created during the process.
    Using the ixml classes I am able to fetch the image string during parsing - but this is just a string and not a JPG-image. I converted the string to xstring - but the result is still no image format.
    Is there a way to fetch the binary content of embedded images from PDF or XML? Any suggestion would be great.
    Thanks In advance.
    Mariana

    Hello again,
    the problem is solved. For collegues which are interested in the solution:
    1. parse the image string with the ixml classes
    2. convert the image-string to xstring using fm SSFC_BASE64_DECODE
    3. save the xstring
    4. pass the xstring to the form interface
    Thats it.
    Regards
    Mariana

  • 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

  • How do I read a hex value and then convert to the binary equivalent?

    I am reading hex values from a register on my unit under test. I only want to monitor certain bits in the hex value to check a status. I have everything down to run the program except how to read my hex values in binary form. Any suggestions out there?

    If this is just a matter of display, then right click and choose "Format & Precision...". Beware, this works only with integer indicators (I8/16/32 and U8/16/32).
    If the problem is to extract a bit value in a specific position, then go to the "Advanced >> Data manipulation" sub-palette where are all bit manipulation functions (rotate, shift, split...).
    Don't forget either the logical functions (And, Or...) in the boolean sub-palette, where is also the "number to boolean array" function (to be used in conjunction with an index array node).
    Another option is to use string conversion functions, in the "String >> String/Number conversion" sub palette.
    Have a look to the attached image.
    Enough ?
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Hex_&Bin.tif ‏20 KB

  • Does the ACR histogram reflect the full image?

    I am trying to streamline camera raw file preperation into a 3rd party color corrector.
    When I take a raw and zero out all the settings, how come things can still be clipped out?
    Isn't everything that is captured ---therefore in the histogram?
    How do I linearize the files? And shouldn't they come out dark? Thats my experience with linear files from high speed video cameras.
    Ideally I would like 16bit tiffs reflecting the sensor capture.
    But I don't have all day to manually customize every setup on ..say 100 cr2's?
    Any tips would be most appreciated.
    thanks,
    Tom

    ssprengel wrote:
    Is there a way to get the non-demosaicked data as a TIF, the one-color-per-pixel numbers?  Then you could see the original RAW numbers and understand if any of the photosites were maxed out.
    If your camera is supported, the easiest way to view raw files is Photobola Rawnalyze. It has many options, but the easiest is the histogram as shown below. This is from the Nikon D3 with full ETTR of a Stouffer wedge. Note that no white balance is applied and the green channel is just short of clipping.
    Another way to analyze the image is with a program such Iris (astronomical freeware) that can look directly at raw files. Here is the green1 channel of the same file with the histogram shown by another freeware program (ImageJ from the National Institutes of Health). In a raw file, clipping can occur when the sensor saturates or the ADC overflows. Because of shot noise and pixel response nonuniformity, the histogram is bell shaped and some clipping can begin when the right edge of the bell curve begins to clip and clipping will be complete when the left edge of the bell curve reaches clipping.
    In practice, ACR with a linear tone curve and the proper exposure offset is accurate enough for most purposes. However, its output is white balanced and the red and blue channels can appear clipped from the white balance multipliers when the raw data in those channels are actually intact. Here there is slight clipping with the exposure offset of -0.5 EV, but it can be totally eliminated by using an exposure of -0.55 EV.

  • Read the raw image file

    I want to read the raw image file , i have the basic labview 8.0 version

    That is a broad question... I'll make some asumptions.
    I think you have a file with some raw image format. This can be quite a few formats. Every camera firm has it's own proprietry format. Often, when talking about a raw image, it is simply a 2d array of colors. So you'll have a file with numbers that are U8's that represent R G B, alpha R G B, B G R, etc., or a U32 that represent the same, combined in one U32...
    The data can be stored binary or ASCII. Both formats are handled differently.
    The ASCII format can be one large array of data, or seperated with enters for each scan line.
    In both cases, you might need to remove information, like height and width, from the data before parsing the image data.
    You can use the "Spreadsheet String To Array" to convert the a ASCII string to a LabVIEW 1D or 2D array. Or use "Read From Spreadsheet File.vi" to read the file directly as an array. Use Reshape Array to convert a 1D array to a 2D array.
    The binary file is a bit different. Use "Read Binary File". It will get you a string. This string is a converted array of U8, the string doesn't need to be ASCII. convert this string to an array of U8's, with "String To Byte Array". Convert the 1D array just like before.
    Now you have a 2D array. You can convert it into a pixmap with "Flatten Pixmap.vi". You can then display it in a picture control with "Draw Flattened Pixmap.vi".
    Regards,
    Wiebe.

  • The binary you uploaded was invalid. Very unhelpful support complaint

    I have finally made it to the "Add New Application" screen in the iTunes connect portal. 3 hours must have passed since I decided to submit my app to the itunes store.
    Almost every step of the way here was painful and full of troubleshooting madness. Yet I followed each step carefully one by one, did everything that the guides told me to do to.
    I've found that to submit your iphone app to the App store following instructions is not enough. Many times in my life I have had to go through Applications procedures, but I have never heard of a procedure where you follow each step but still run into problems.
    So my problem is, I try to upload my file I get an error message:
    The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.
    Question 1)
    Am I supposed to be uploading a zip file or the .app file? When reading the step by step instructions it says to zip the file (Yet no explanation on what to do with the zipped file). When choosing which file to upload I can only upload the zip file. Their should be clear instructions pointing out exactly what type of file needs to be uploaded, and also additional notes explaning what I should do with the zipped file.
    Question 2)
    Earlier in the process I was required to enter a common name in the certificate. It says to enter the common name you entered when you signed up. I do not know where to find that common name exactly, and and I unsure where I can find that exact information. There should be instructions about where you can find your common name to avoid problems further down the process.
    Question 3)
    Under verifying distribution, Step number 2 it says:
    "Search for the term “CodeSign” in the Build Log detail view - this will take you to the line in the build log that confirms your application was signed by your iPhone Certificate"
    So it shows up in my log, but the instructions do not point out what to look at, and where the problem might be. It only tells you to search for the term CodeSign and leaves you off. Sure their is an image highlighting the required line. But it says nothing other than to look for the words CodeSign. What exactly am I looking at here?
    I am doing my best to try and forgive these flaws found in the help section. What is it that I did wrong?
    Message was edited by: Darpachief

    Darpachief wrote:
    So my problem is, I try to upload my file I get an error message:
    The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.
    Most likely you got the binary signed with the wrong certificate. Or there's something else in your process that doesn't match exactly with what you entered at the Program Portal.
    Question 1)
    Am I supposed to be uploading a zip file or the .app file? When reading the step by step instructions it says to zip the file (Yet no explanation on what to do with the zipped file). When choosing which file to upload I can only upload the zip file.
    You should upload the zip file. You're correct that it's not spelled out in the printed directions, but there's a video on how to prepare your app for the store and in it the presenter uploads the zip file. Being only able to choose the zip file is a sign that the correct file is the zip.
    Question 2)
    Earlier in the process I was required to enter a common name in the certificate. It says to enter the common name you entered when you signed up. I do not know where to find that common name exactly, and and I unsure where I can find that exact information. There should be instructions about where you can find your common name to avoid problems further down the process.
    Remember when you generated and installed all the certificates from the Program Portal web site? You can get the names from there.
    So it shows up in my log, but the instructions do not point out what to look at, and where the problem might be. It only tells you to search for the term CodeSign and leaves you off. Sure their is an image highlighting the required line. But it says nothing other than to look for the words CodeSign. What exactly am I looking at here?
    Basically, by following those directions, you're looking to see if your code is signed and that it's signing the right binary (i.e., in the correct build folder). It's not telling you what you used to sign the binary, whether you used the development certificate or the distribution one.
    What is it that I did wrong?
    You have to generate a certificate and provisioning profile for your app for distribution. You can't use the same one you used for signing your app if you tested on your device. You need to have the certificates and provisioning profiles properly entered into your keychain and Xcode for this to all work. Perhaps you missed one? Make sure you've zipped and uploaded the correct binary, i.e., the distribution one and not a development one.
    Also, you should make sure that the app identifier (com.companyname.appname) matches exactly with what you entered into the program portal, even down to the case (i.e., if it's "appname" on the portal make sure it's not "AppName" in Xcode).
    I haven't uploaded anything to the App Store yet, but I've pretty much done everything else: Ad Hoc distribution to my iPod via iTunes on another computer running an older OS, run directly on the iPod, used Instruments to profile my code on the iPod. In every case, I ran into some kind of roadblock, but in going through it again, I also found that I skipped some step, or missed some setting, and once I corrected that, things worked as expected.
    It's a complicated process, one that has a lot of steps, therefore a lot of places for a mistake or missed setting. So try going back through the process again just to make sure you haven't missed a step or gotten some setting wrong.
    charlie
    P.S. - If you want to send feedback on the documentation, ADC has a contact page.

  • Read 16 bit binary image into LabVIEW, convert to TIFF and display

    Hello,
    I have what is probably a simple problem - I have RAW images (1536 x 1944) saved in binary files consisting of unsigned 16 bit integers that I need to read into LabVIEW and be able to view on the front panel (so presumably convert to TIFF or something like that).  
    This is not information that was written using LabVIEW - it was actually written using the fwrite command in C++ if that is any help, and has no header information.
    I found this example VI:
    http://forums.ni.com/t5/LabVIEW/read-the-raw-image-file/td-p/505871/page/2
    The picture of the final VI solution that is posted at that link - it looked promising, but the flatten pixmap function appears to only take in 8 or 24 bit inputs, not 16 bit inputs, and I was unsure it if was possible to configure it for 16.  Is it possible to use this same structure to read in my binary files as well?  If so, what changes need to be made?  Otherwise do I need a different function?  I am very new to image processing in LabVIEW.  
    Thank You.

    Hello,
    The flatten pixmap function does not appear to be able to take in 16 bit inputs and I cannot find a function that flattens a 16 bit pixmap.  Is there any way you can convert your binary file into that of 8 or 24 bits?  
    Also, I don't know if this other forum thread may help or give context to the subject.
    http://forums.ni.com/t5/LabVIEW/Can-a-16-bit-image-be-displayed-in-a-picture-control/td-p/33347 
    Cameron T
    Applications Engineer
    National Instruments

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

Maybe you are looking for

  • SL upgrade installation failed and now macbook won't boot

    Hi all, I did some searching in the forums, but I couldn't find this answer -- I'm sorry if it has already been asked/answered. I have a 2.5 yr old intel macbook that was running leopard, and I bought the SL upgrade. My mac has been hovering around 0

  • Messages "stuck" in draft folder seems to be fixed in 10.6.4

    I contributed some time ago to the annoying "feature" that after a message had been sent, it also remained forever in the "draft" folder. This appears to be fixed in the update - although at first sight, I couldn't find any official info about it. An

  • Images won't show up in edit mode

    Okay this one really has me baffled. When I go into Aperture 3.6 and go to edit images in either split view or viewer mode, the images won't display.  I can see the thumbnail preview, but nothing else. Help!

  • Variables usage for ageing analysis ...

    Dear All,     Pls let me know how do we create a variable in the query so that an ageing analysis can be done.       e.g, I have ranges in the selection criteria (1-30, 31-60, 61-120, >120),  I need to filter the data based on my posting date and  th

  • Problem with finding data-source

    I get the following exception: javax.naming.NameNotFoundException: jdbc/localDatabaseDS not found when i try to initiate my ds (datasource). Does anybody know what to do? class = import java.sql.Connection; import java.sql.SQLException; import javax.