How does Labview handle 16bit images with the VI "ImagetoAr​ray"?

Hi...
The ImagetoArray function in labview 6.1 handles 16 bit images as an I16 data. This seems to cause memory overflow when I have intensities past 32k. How do I change this to an unsigned 16 bit array or is there a different function that I can use? Thanks much

Ivan,
At first I wasn't sure what you were asking.  Now I think I understand.
If you have a 16 bit image, it doesn't matter if it is signed or unsigned.  Both the U16 and I16 have 65,000 different intensity values, the numbers are just represented differently.  In order to convert a 2-Dimensional I16 array to a 2-Dimensional U16 array, you will need to do some simple bit manipulation.
Basically you need to first cast the I16 into a U16 and then XOR each element in the I16 2D Array with a 0b1000000000000000.  I have attached an example VI which shows how to do this.  This basically changes the flips the left most bit.
I hope I answered your question,
Lorne Hengst
Application Engineer
National Instruments
Attachments:
IMAQ Signed Unsigned Example.vi ‏51 KB

Similar Messages

  • In the new Pages, how does one send an image to the background (and make it selectable)?

    How does one send an image to the background in the new Pages and how does one make it selectable?

    Also why don't TEXT to Speech short cuts established in system preferences work in the new Pages?
    I am confused (and not completely happy)

  • How does iPhoto handle rotating images? 'Revert to Original' Issue

    I use iPhoto for all my images, and need to get my head around how it stores images, particularly when edited. If I rotate a photo, for example from horizontal to landscape, then I think it stores the old version, and the new version. I can use the menu to 'Revert to Original' - which shows the unrotated image.
    According to iPhoto, my library size is 24.8gb.
    According to Finder, the library size is 34.2gb
    I would like to reclaim this nearly 10gb back, as if I have rotated a photo, I do not need the original version! It would also be nice to change the iPhoto behaviour, so when you rotate an image, it does not create a new file.
    I have heard of iPhoto diet, but that does not work reliably for newer versions.
    I use iPhoto 7.1.4 (the latest) and any help or advice would be appreciated.

    Welcome to the Apple Discussions. The best way to do what you want for future photos is to upload the photos from the camera to a folder on the desktop, rotate the file there before importing into iPhoto. There are 3rd party applications that can losslessly rotate image files. Also do not turn on the Auto-Rotate feature of your camera if it has one.
    For those that are already in the library the only way to do what you want is to replace the original file with a copy of the edited file inside the library package and then do a revert to original on that file.
    To facilitate replacing the original files with a copy of the edited (modified) files put all of the files you want to replace into one Event. That will put them all in one folder within the Originals folder and Modified folder. Then copy the contents of the Modified subfolder into the corresponding Originals subfolder.
    You run a big risk of damaging the library if an error is made during the process. It's really not recommended. In other words *proceed at your own risk and make a backup of the library before proceeding*.
    The reason the finder reports a larger library is that it is reporting the original, thumbnail and modified files as well as the database, cache and data files.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • How does Safari handle fonts? Because the fonts looks different

    Hi,
    I "developped" (please don't laugh) a webpage in Firefox.
    http://test.patrickeischen.com
    Safari however changes the font, font-size and line-height which is not what I want. Does Safari handle the fonts different that other browsers?
    Patrick

    I think the problem is with an error in this line in the CSS:
    font: small/1.75em , Tahoma, "Trebuchet MS", Verdana, sans-serif;
    There should not be a comma after "small/1.75em". That line should read:
    font: small/1.75em Tahoma, "Trebuchet MS", Verdana, sans-serif;
    Other web browsers are probably being forgiving about that error and interpreting that line of CSS as it is intended, while Safari is balking at that error and ignoring everything after the comma that doesn't belong.
    I noticed that error when I was skimming through the CSS looking for your font declarations. But you can also find it by running the W3C CSS validator, a very handy tool when working on web sites, along with the W3C HTML validator. While these won't in themselves help you understand everything there is to know about web coding errors and browser display differences, using them to minimize or eliminate your coding errors often helps narrow down other problems as well.
    Message was edited by: Rachel R

  • How does one pan an image with Preview??

    There doesn't seem to be a hand tool in order to pan a zoomed image.  Help would be appreciated.

    On my magic mouse I can just swipe (up, down, left or right) with my finger. The arrow keys seem to work for me too.
    What kind of pointing device do you have (trackpad, magic mouse, apple mouse, etc.)?
    Edit: If you have a mouse with a standard scroll wheel try holding the shift key to scroll horizontally.

  • How do companies handle Apple IDs with the new iOS7 features?

    My company has a number of iOS devices that it has purchased for employees to use.  Traditionally we have let employees use their personal Apple IDs on their company phones/tablets so they can have access to their personal purchases, etc.  It is not really feasible for us to force employees to use a corporate Apple ID as that would prevent them from accessing their personal content and there would be a revolt if we tried to implement that policy.
    Now that the new iOS7 and Find my iPhone enhancements prevent you from restoring an iOS device to factory defaults without the associated Apple ID credentials, what is the recommended path for businesses to take if they are not large enough to warranty an MDM solution?  If an employee leaves the company and turns in an iOS device that is password protected, how can the company restore it if they don't have the employee's Apple ID?  Normally this is not a problem, but occassionally an employee leaves on bad terms and won't cooperate.
    Is there a way to register a device to a corporate Apple ID, or otherwise "flag" the device as a corporate-owned device so the corporate Apple ID can restore the device to defaults while still allowing the employee to use their personal Apple ID on the device?

    You can't rely on just Yelp. Apple Maps pulls data from a variety of business listings vendors. Here's some more detail:  How To Add a Business To Apple Maps

  • How do I substract an image at the time t with an image at t-1 to detect move in a grab acquisition

    After the VI acquire in a grab acquisition, how do I substract an image at the time t with an image at t-1 to detect the movement in the scene?

    Hello,
    One way of doing that is to do a ring acquisition with two buffers. At anytime one of your buffers will be the most current frame and the other will be one before the most current. Having both buffers available at anytime in your code you can call IMAQ Subtract.
    Hope this helps!
    Yusuf C.
    Applications Engineering
    National Instruments

  • How do I combine my iphone contact list with my laptop pc contact list?  And how does it handle duplicates with different information?

    How do I combine my iphone contact list with my laptop pc contact list? And how does it handle duplicates that have different information?
    How do I merge my iphone calendar appointments/alerts with my laptop pc calendar appointments/alerts?  And how does it handle duplicates?
    I do not need anything to change on my email that is working fine on both.

        gspielman,
    Help has arrived to assist you with getting those contacts on both your devices. The Verizon cloud service is definitely a great tool to use and you can also use Apple iCloud as well. When you sign into the Verizon cloud on your iPad does it give an option or message to restore?
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • In iPhoto, how can I export images with the metadata - including the title and caption information - intact as part of the image?

    In iPhoto, how can I export images with the metadata — including the title and caption information — intact as part of the image?

    Check those boxes in the export dialogue - Exporting From iPhoto
    LN

  • I'm having problems with iPhoto and the facebook set-up.  Every time I attempt to do so it says an error has occured and try again later.  I have not seen a solution posted.  Therefore, how does one contact Apple to solve the problem?  I'm new to the worl

    I'm having problems with iPhoto and the facebook set-up.  Every time I attempt to do so it says an error has occured and try again later.  I have not seen a solution posted.  Therefore, how does one contact Apple to solve the problem?  I'm new to the world of iMac but I find it a bit frustrating trying to solve basic issues/problems:(

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • When clicking "Save image as" how can I get Firefox to auto add a (1) (2) etc at the end of the filename if an image with the same filename already exists?

    How can I get Firefox to automatically rename images when clicking "Save image as" on the menu, when an image with the same file name already exists in the folder??

    Hello,
    That is not a feature that is supported natively within Firefox but there are various add-ons which I think will do the job you need.
    The one I have used is [https://addons.mozilla.org/en-US/firefox/addon/web-slide-show/?src=search Web Slide Show]. This is primarily an add-on for viewing a slideshow of images when they are presented as thumbnails on a web page. However once you are in the slideshow there is a download button which will download all the images in the slideshow. It will automatically rename the images if an image with the same name already exists in the folder.
    If you don't like that add-on then here are some others that may do the same job:
    * [https://addons.mozilla.org/en-US/firefox/addon/image-download-%E2%85%B1/?src=search Image Download II]
    * [https://addons.mozilla.org/En-us/firefox/addon/image-picker/ Image Picker]
    I hope that helps. Let me know if not.
    Also I notice that you are using Firefox v23. That is now an outdated version. To get the latest security updates I suggest updating to version 24. See the support article here: [[Update Firefox to the latest version]].

  • How to create blocks on Procedures? How does one handle I/U/D on the block?

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

    Hello Gurus,
    How to create blocks on Procedures? How does one handle I/U/D on the block?
    Please give an example.
    Thank You,

  • How to mark (psd) Images with the Circle Symbol without duplicating them

    I would like to import my layered images in Aperture.
    The problem is i would like to further adjust them in photoshop cs3 without creating a duplicate.
    Is there a possibility to mark this images with the Circle Symbol (for edited with external editor) or do I really have to open each image than close again, delete the master and then the remaining image with the circle can be opened and further enhanced in Photoshop without duplicating the image.
    Another example:
    I like to open a psd file within aperture with: edit with Adobe Photoshop CS3.
    The Image should open without being duplicated. Then I could drag the layer into another PSD document and close it again.
    Right now I would end up with a Master Duplicate which I have to delete afterwards.
    I know I could use referenced files and say show in finder but I like managed better,
    also:
    Show in finder does show you only one image (I like to do that to 5 or 10 images at once).
    bc

    Like I said if you want to get into the programming business you can modify the aperture database directly but I don't know of an easier way with managed masters. You can always just do your workaround to files that you are actually working on and you only need to do it once.
    Sorry there is no answer to easier answer to deal with all of them at the same time. At least none I can think of off the top of my head.
    RB
    Ps. Lightroom can just open your PSD files but that is an apples and oranges thing. Lightroom is not trying to manage your masters for you in a managed library an ensure that nothing modifies them, if you are ok with that method than referenced files should be ok with you as well, you can always use referenced for your legacy PSDs and use a managed methodology for your new images going forward starting with the source image.

  • How do I duplicate an image on the main screen so that I can edit it and compare the result with the original?

    In Elements 12 How do I duplicate an image on the main screen (as well as the photo bin) so that i can compare any editing with the original?

    In full Editor, go to Edit>Preferences>General and check "Allow Floating Documents in Full Edit Mode"
    Open the image so that you see it in the project bin
    Right click the image thumbnail in the project bin, and duplicate. It will come in as xxxcopy
    On the Arrange icon at the top, select 2-up. You should see the original and the duplicate in the work area

  • Does anyone know how to delete songs that came with the iPhone 6 in the music?? i tried deleting them from iTunes but i couldn't.

    does anyone know how to delete songs that came with the iPhone 6 in the music?? i tried deleting them from iTunes but i couldn't.

    I know you already solved this but for future reference, there is also another setting to only keep songs downloaded to your device visible in music.
    Go to Settings --> Music --> Show All Music and make sure it is turned off

Maybe you are looking for

  • How to embed pdf in a doc

    I am trying to develop a training document that shows colleagues how to read a particular report.  I was wondering if there is a way to take a snapshot of the report and embed it in a standard word processing document.  It is in a pdf format and the

  • Switching CS6 from PC to Mac

    I currently have CS6 for PC and I am now switching to be a Mac user. I previously spoke to a representative who said I should be able to transfer my software. Can you please inform me how this would happen? Many thanks for your help. Serena Edwards

  • On my IPad 2, I can not access the keyboard to send or reply to an e-mail.  What am I doing wrong?

    On IPad2, I have not been able to access keyboard to send an email.  What to do?

  • Cannot connect to retrieve Database/current.zip

    I just completed a patch upgrade on the Solaris 10 machine that runs our local patch server. It needed several hundred patches, as it hadn't been patched since September. After that, the behavior of our Solaris 10 patch clients has changed. For examp

  • Very much Worried about the performence of my project

    Hi All, We have developed a site. Initially the site was with less no of features and so we have choosen JSP to develop the project. Now we have implemented so many features and the system became complex. I have nearly 1000 Pages most of them contain