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

Similar Messages

  • To convert an rgb image to 8 bit grayscale

    Hey,
    I need to convert an rgb image to 8 bit grayscale image as the image is being acquired, im using the imaq create VI, which has an 'image type' terminal which allows the choice of image to be selected.however this isnt working. any solutions?
    also
    Im trying to make a image constant for the imaq subtraction VI, so the this constant image is subtracted from each image as its acquired.what would be the easiest way of doing this, without having the user specify the same image path each time? thanks.

    Not sure what you mean by extracting a plane?
    Here is a VI that will convert an image to 8-Bit.  This paired with the grayscale one will get the desired result.  See example.vi below.  Order that they are applied does give slightly different results.
    LV 8.0 through 2013, Win 7
    CLA
    Attachments:
    example.vi ‏12 KB
    QSI Convert to 8-Bit Image.vi ‏22 KB
    QSI Grayscale Image.vi ‏28 KB

  • Can a 256 bit encrypted disk image be read by Tiger?

    I have computers running Leopard, Tiger and Panther.
    If I create a 256 bit encrypted disk image in Leopard, will the image be able to mount and used for reading and writing in Tiger and or Panther?
    Or should I use 128 bit encryption in a mixed OS X environment?
    TIA,
    Bill

    Hello Bill,
    A 256 bit encrypted disk image created in Leopard can be opened in Panther, and presumably Tiger, though I don't have Tiger.
    It cannot however, be written to, only read.
    So if you want to add to the disk image on Panther, and possibly Tiger, use 128 bit. But if you only want *read only* on the other machines you could use 256 bit.

  • Need conversion mechanism for converting 24 bit image to 16 bit

    In my java project I need to convert 24 bit image to 16 bit image. I don't have any clue. Please provide me the option to implement it.
    Thanks,
    jai

    That doesn't tell me much, and I know what you're talking about. I doubt that it tells the OP anything useful whatsoever.Sorry EJP, it was a mouthful I know. Maybe this will help instead, a ColorConversionOps class to work on *32 bit > 16 bit > 32 bit colors*. To help clarify where the 16 bit color input and output goes, some of the methods return or require parameters of type short. Also take notice the bitmask for variables of type short vs the bitmasks for int. AND pay particular attention to the unsigned right bit-shifting of the most-significant-digit.
    public class ColorConversionOps
      public static short convert32_16(int rgb) {
        int a = ((rgb & 0xF0000000) >>> 16);
        int r = ((rgb & 0x00F00000) >>  12);
        int g = ((rgb & 0x0000F000) >>   8);
        int b = ((rgb & 0x000000F0) >>   4);
        return (short)( a | r | g | b);
      public static int convert16_32(short rgb) {
        int a = ((rgb & 0xF000) << 16);
        int r = ((rgb & 0x0F00) << 12);
        int g = ((rgb & 0x00F0) <<  8);
        int b = ((rgb & 0x000F) <<  4);
        return (a | r | g | b);
      public static void printRGB_32(int rgb) {
        System.out.println("a="+((rgb & 0xFF000000) >>> 24));
        System.out.println("r="+((rgb & 0x00FF0000) >>  16));
        System.out.println("g="+((rgb & 0x0000FF00) >>  8));
        System.out.println("b="+ (rgb & 0x000000FF));
        System.out.println();
      public static void printRGB_16(short rgb) {
        System.out.println("a="+((rgb & 0xF000) >>> 12));
        System.out.println("r="+((rgb & 0x0F00) >>  8));
        System.out.println("g="+((rgb & 0x00F0) >>  4));
        System.out.println("b="+ (rgb & 0x000F));
        System.out.println();
    }Now to make the conversion from 32 bit color to 16 bit color and back. NOTICE there willl be a loss of precision -- just like someone else has already said.
    public class Test
      public static void main(String[] args)
        int rgb = 0xFFFFFFFF;
        ColorConversionOps.printRGB_32(rgb);
        //a=255
        //r=255
        //g=255
        //b=255
        rgb = ColorConversionOps.convert32_16(rgb);
        ColorConversionOps.printRGB_16((short)rgb);
        //a=15
        //r=15
        //g=15
        //b=15
        rgb = ColorConversionOps.convert16_32((short)rgb);
        ColorConversionOps.printRGB_32(rgb);
        //a=240
        //r=240
        //g=240
        //b=240
    }And now we see, the reason 16bit color is so unpopular to the rest of the world, but not for us here!

  • Convert 16 bit tiff?

    I am trying to recover disk space and have been using the DNG Converter to save 10-20 percent on my Canon cr2 files
    I also have over 256 Gigs of 16 bit tiff files that I have outputted over the years from the HDR program Photomatix Pro,
    When I originally saved them I saved them at a bit depth of 16 so I would have more to work with for the final editing.
    So, on average the tiff  files are each about 100 megs, I am guessing that as a DNG , it would shrink that by about 75%
    DNG converter doesnt like the 16 bit tiffs and skips them.
    Is there another piece of software that can convert 16 bit tiffs to DNG
    OR
    Is there another piece of software that can batch convert 16 bit tiffs to 8 bit so I can dump  then them into the DNG converter without having to do each file one by one.
    Thanks
    Todd McIntosh

    I have not used it before to convert 8-bit Tiffs.
    I am only assuming it does so, because the program pulls the tiff files into the cue when you have them in the folder you are converting.
    When the program goes to convert them (16 bit tiffs) it gives me a status of ...
    "there was an error parsing the file"
    Perhaps I am incorrect in assuming the results would be different with an 8 bit Tiff.
    Hmmmm,
    Todd

  • [Bug] iOS 5.1 missing covers after "convert higher bit rate songs to" with iTunes 10.6

    All my music has covers in iTunes Library. But after i updated to iOS 5.1 they are missing on my devices.
    It happens every time i check "convert higher bit rate songs to 192/256 kbps" on iTunes 10.6 (40) on my Mac.
    On the screenshot (iPad 2010 running iOS 5.1) Bon Iver's album copied by default settings, and Coldplay's album converted to 192 kbps.
    BTW on my old iPhone 3G (iOS 4.2.1) all covers are OK even when convert feature is ON.

    I have solved it by unchecking (momentaneously till apple fix it) the "Convert higher bit rate songs" option.
    I know that it need more space but i don't have too much music synced so.. it isn't a problem for me..
    I have this problem because i'm using the "manually manage music and videos", i'm not using the auto sync option because iTunes always try to copy my new apps to my mac even having that option unchecked...
    Now we have iCloud... i don't know why apple still have not deleted this feature!
    Anyway... i have solved it momentaneously.
    Apple.... come on!

  • Need 256 Bit AES Full Disk Encryption for a Mac.  The other discussions regarding this issue are very old.  Does anyone have any current advice regarding encryption software?

    Does anyone have any advice regarding 256 bit full disk encryption software for Macs?  The other discussions on the topic are years old, so I would like some current input.  Thanks for your help in advance.

    Depending on your Mac, you might not want to upgrade to OS X 10.7 or 10.8 as it will not run the PowerPC based software your currently using costing a bundle to replace it all, also they will slow down your machine if it's not a more recent issue. You don't want to upgrade OS X without AppleCare defending your possibly bricked logicboard that's for sure.
    Filevault encrypts the boot drive, however in doing so makes it near impossible to fix if you have a software issue and need to recover files directly or by using specialty software. Also it robs the machine of performance even more than the Lions do. So you will really need a SSD to work best with 10.7/10.8 and Filevault, then it has to be freshly installed. Filevault needs 50% free space on the boot drive, then it's going to write to the slower 50% half of the hard drive where performance is terrible compared to the first 50%.
    Also Filevault is cracked under certain conditions, and if someone gets their hands on the machine (like the law) and knows what they are doing.
    If you take your Filevaulted machine to Apple to fix, they are going to require the password to fix the machine obviously.
    Software based encryption is vulnerable, you might want to instead place your sensitive data on external self-encrypting hardware that doesn't rely upon software or computer hacks/bypasses (ike freezing the RAM) to get to it.
    http://www.datalocker.com/products/datalocker-dl3.html
    Iron Keys for portable USB self encryption, both work with any computer, so your not locked into one platform.
    With the senstive data off the computer and on a external device, there is the option of removing, hiding and securing the device. If used with a computer that's never connected to the Internet, it's safe from snoopers, except from a survelliance van parked outside your door.

  • What does convert higher bit rates songs to 128 kbps mean

    what does convert higher bit rate songs to 128 kbps mean?

    pattyfromsyracuse wrote:
    what does convert higher bit rate songs to 128 kbps mean?
    Some people, myself included, import their music from original audio CDs. When doing so I choose to import using Apple Lossless format so as to keep the full original quality of the audio CDs (this is after all why it is called Apple Lossless format in that you are not losing any quality).
    The drawback of doing this is that the music files take a lot more disk space than a lossy format like MP3 or AAC. This is these days not a problem on a computer as hard disk space is now cheap an plentiful but it can be a problem on a flash memory based music player like the iPod Shuffle, iPod Nano, iPod Touch, or iPhone as these have far less capacity.
    Therefore Apple now let you turn on this option to automatically convert from Apple Lossless to AAC when syncing to one of these music players. As a result on your computer the music is still kept in the full lossless high quality format, but is converted and transferred as a much smaller but slightly lower quality for use on these music players. As with an iPod you are not listening in a quiet room with high quality speakers you will not really notice the difference in quality.

  • When I Tick Convert higher bit rate songs to 128kbps and press sync it says are you sure you want to remove apps. Help please

    Hi, I recently put music on my ipad (manually, I do not sync because I dont like leaving music in my itunes) I realised they take up a lot of space because of the bit rate so I went into iTunes and pressed "Convert higher bit rate songs to 128 kbps AAC" Then I pressed apply and I got the message "Are you sure you want to remover 113 apps......." I have checked and sync Apps is unticked so my question is why does it say this and is there a way around it. Also if i tick convert to AAC will it convert the songs already on my ipad or just ones I add from now on.

    SeasiderChris wrote:
    Hi, I recently put music on my ipad (manually, I do not sync because I dont like leaving music in my itunes
    Why not? That's what it is for.
    So Restoring your iPad when it crashes and losing all your music is acceptable to you?
    Then I pressed apply and I got the message "Are you sure you want to remover 113 apps......." I have checked and sync Apps is unticked so my question is why does it say this and is there a way around it.
    Since you now want to sync the iPad and have told it you do not want to sync apps, it will remove them all.
    Check the apps you want on the iPad.
    Also if i tick convert to AAC will it convert the songs already on my ipad or just ones I add from now on.
    It will only convert new songs added to the iPad.

  • Convert higher bit rate songs?

    This is an option on the device screen every tme I sync my iPod touch - now at OS v6.
    Should I click on it and convert? And if so, to which kbps setting?

    On-the-fly conversion is only available on the iPod shuffle. The iPod shuffle (probably because of it's limited capacity) has the option to "Convert higher bit rate songs to 128 kbps AAC". This option is not available for any other model iPod. Syncing anything larger than a shuffle and converting in the process would be a very slow process. For the larger iPods the files have to be converted in iTunes first or indeed have to have been imported in a compressed format prior to transfer.
    There are a couple of ways to handle this, one is to convert the songs in your library and put them in a playlist to sync the iPod from, the other is to have a second library of compressed songs and sync the iPod from there:
    iPod - Syncing Music
    Using multiple iTunes libraries -Mac

  • ITunes replacing 256 bit songs with 128 bit songs

    When I downloaded new applications from the App Store today, I noticed that my downloads in iTunes also downloaded six songs.  Upon further inspection, it replaced three Peter Gabriel Songs from the Album "So" with 128 bit versions, and moved my 256 bit versions to the trash.    I purchsed six songs, total, off of that album, but only three were replaced and deleted.
    In addition to moving the above songs to the trash, it also sidelined a handful of songs by copying new versions, including:
    I've been Everywhere, Johnny Cash, Unchained
    Baby Baby, Amy Grant,  (no record of previous purchase from this same album)
    New York, New York, Tony Bennett, Fifty Years (previously had a 128 bit version, and it downloaded a second 128 bit version)
    Anyone else experience this?  You can easily check after the fact by sorting on recently modified songs, and see if you have any 128 bit versions, or if you don't empty your trash often, by looking for the "Original iTunes Purchases" in your trash.  This will show any files that have been deleted, but not sidelined.

    I saw ginbear's post and looked again.  I had two more replaced files.  Appears they were replaced on 1/22 and 1/24 of this year.  I have a couple thousand iTunes tracks, and it only seems to replace a couple ever few months.  Luckily, I was able to retrieve the files.  One from a recent backup, and the other from a one-off copy I made just in case, the last time it happened.
    Here's the response I received from Apple after pursuing it for a couple weeks the last time it happened.  They looked at specific tracks iTunes had downloaded.
    I'm not sure what the representative is trying to say, but I was glad they looked into the issue.
    10/13/2011
    Name, this issue is one that does not occur often (I myself have only encountered one other instance of this happening). This may have been caused by a technical error in the iTune Store itself resulting in the pre-upgraded file to download automatically to your account which has been only been known to happen on very rare occasion.
    The other explanation may have been an error in iTunes, or with your iTunes library file that caused the 128-bit DRM files to replace your 256-bit DRM free files. For example, if your iTunes library was restored from an iTunes library file before the upgrade was made.
    In any case, it is not the iTunes Store's intent to replace your music with pre-upgraded files so I am very glad to hear that you were able to recover your iTunes Plus music, and do not appear to have any files missing.
    I want to make sure that you are able to enjoy your iTunes Plus music, so please feel fee to let me know if there is anything further I can assist you with in regards to your files. Thank you for your continued patience name. I hope you have an excellent day!

  • How to tell if 128 or 256 bit encryption

    I have an encrypted disk image. I can access it fine. How do I tell if it was encrypted with a 128 or 256 bit key? All the info says is "encrypted".

    Found it!
    hdiutil imageinfo <path>

  • ASUS DirectCU II R9270X-DC2T-4GD5 Radeon R9 270X 4GB 256-Bit GDDR5 video for PrPr/Sg?

    My computer-builder is making me a new box ... i7 & associated goodies. He's suggested the following video card ... it rates very high over at Tom's hardware at the time, but does anyone have any experience with this card? I'm a one-man shop working mostly in PrPro & Speedgrade ...
    Asus DirectCU II R9270X-DC2T-4GD5 Radeon R9 270X with 4gb of 256-bit GDDR5
    Any ideas?
    Neil

    Well here we go on Premiere Pro CUDA vs OpenCL debate.  Today I ran the CC 2014 (Premiere 8.0.1.21) comparison of the R9-280X and the GTX 770 SC.  Here are my results:
    "25","103","27","502", Premiere Version:, 8.0.1.21   GTX 770       907 seconds
    "25","117","48","502", Premiere Version:, 8.0.1.21   R9-280X        906 seconds
    The first numbers are the Disk I/O tests and have no bearing here.  The second number is the GPU accelerated H.264 timeline and you can see a small difference in favor of the CUDA card, incidentally the un-accelerated times for CPU only are 907 and 906 due to our +/- a few seconds Windows time base of a 1 second clock
    The real test of GPU acceleration is the third set of numbers from our MPEG2-DVD export of AVCHD video a major difference of 27 to 48 seconds.  This is slightly better than my CC test which was 27 to 52 seconds, hence the comment that it was only half as good
    I chose the R9-280X as being the closest specification wise to the D700 and the D500 that I could obtain.   If you decide to go with the R9 series I did notice that with the H.264 timeline which has three 4K clips that it uses much more video RAM that the CUDA cards do for the same exercise.  My R9-280X had only 3 GB of RAM but I have no way of knowing that if that was a limiting factor.  My  GTX 770 had only 2 GB and it did not use all of that at any time

  • 5700 Ultra with GDDR3 : 256-bit mem-interface???

    Hey guys,
    this question is for the techno-geeks (like myself  ) in the hardware stuff, specifficaly about Vid Cards.
    Well the question is the following:
    The new Nvidia GeforceFX 5700 Utra cards with GDDR3 memory, that will start shipping in mid-march, will have 256-bit memory interface like the big guys (high-end cards) or will remain with the poor guys (low/mid-end cards) 128-bit interface??.
    This is an important question that i need answered cause it will help me decide if i go for that card or an ATI one in the near future.
    So plz guys, i would appreciate some replies here.
    Cheers.

    As far as I know, the width of the memory interface for the GPU depends on the GPU design itself (i.e, with either a 128-bit or 256-bit data bus). So since they will be using the same GPU (NV36 I think), the card will continue to have a 128-bit width memory interface.

  • Windows 8.1 Pro Bitlocker AES 256-bit cypher question

    Hi, all
    Have an odd situation I cannot make any sense of. I have a desktop PC running Windows 8.1 Pro. I launched gpedit.msc and changed Bitlocker’s cypher strength from the default AES 128-bit to AES 256-bit.
    I then connected a brand new Western Digital 4TB external drive (model WDBFJK0040HBK-04) to the PC via USB 3.0, and Bitlocker-encrypted the drive. Opened a command prompt window as administrator, ran “manage-bde –status” for the drive in question,
    which indicated the drive was encrypted with the 128 bit cypher strength, instead of 256 bits, as I had selected. Have unencrypted, rebooted and re-encrypted the drive time and again, always with the same results.
    When connecting the same external 4TB drive to a Windows Server 2012 R2 Essentials in which I had made the exact same changes via gpedit.msc,
    I can encrypt it with the 256-bit cypher strength, with no problems.
    No TPM is used in either scenario, just a passphrase.
    Anyone has any idea why my 256-bit setting is being ignored in the Windows 8.1 Pro machine?
    Thanks
    Arsene
    ArseneL

    Well, running rsop.msc in my Server 2012 R2 machine does show my 256-bit bitlocker setting took, however, running rsop.msc in my Win 8.1 Pro machine shows it did not, which explains the problem I am having.
    Now all I have to do is find out why my request is not taking, even though I am logged in as an admin.
    Thanks!!
    ArseneL

Maybe you are looking for

  • I get a Group Policy Disk Quota failure at every system start

    This is very long, my apologies I asked this question about a month ago and then had some medical problems so I'm starting over again. Whenever I start my system I get a message on the screen that the system is trying to run Group Policy for Disk Quo

  • Bootcamp windows 8.0 pro installation issue with early 2015 Macbook Pro

    I am having this issue with installing Windows 8.0 pro (and 8.1 pro) on my early 2015 MacBook pro vs. Bootcamp. I have tried different method for  multiple times and all failed. Any help is appreciated. Hardware: (1) early 2015 MacBook Pro with 128GB

  • How do I make fonts larger i photoshop?

    how can I make my fonts larger in photoshop?

  • XML Element of selected text

    Hi, I need to get the tag name of bold applied in InDesign document.  When finding bold contents in InDesign document using Find Options, its select bold contents with some hidden text (tags) as shown in the below image.  If i use "select in structur

  • Connected to Internet, but cannot ping ANYTHING

    One of my company's customers has an issue with their windows 7 machine that I have been trying to help him solve to no avail. The problem began when he was suddenly unable to use certain functionality of our software several days ago- having changed