JAI and color palette

Hi, I�m working with JAI, and I would like to know how could I change and manipulate the color palette of an image. I�m working with RenderedOp objects.
I think that this could be done using ColorModel or Sample model classes, but i dont know how.
I look foward on receiving an answer. Thanks

Not quite sure of what you're asking...
If the ColorModel is TYPE_..INDEXED or BINARY (or similar) you can change palette colors their. If the image is of TYPE_INT_RGB or the like, i think you can only change pixels (colors).
The only way i can think of is for example, generate an BufferedImage with a say TYPE_BYTE_INDEXED (IndexColorModel) with 1,4,8 bit depth. Then, it's easier for me to, getColorModel, covert the byte array to an RBG int array; change the color with some Color methods, reconvert back to byte array. Then generate a new image with BufferedImage(IndexColorModel, 'oldimage'.getRaster()). Make sense?, this is kind of wack but i can stand dealing with the byte array!
With JAI though i don't know what colormodels are being shot out, i make my own (inferior) Codecs. it helps me understand BMP,TGA,BMP better. The jpg codec i assume is generating 24 bit RGB but i assume tht BMP codec is >8 bit Indexed as it should be. Hope this helps

Similar Messages

  • I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    I need help with color pallette in iPhoto 11. I have created a book and would like to use a different color background than those given in "background." I have found the color palettes but can't seem to incorporate them into my backgrounds palette.

    That is not a feature of iPhoto - suggest to Apple - iPhoto Menu ==> provide iPhoto feedback.
    Additionally I have no idea what you are saying here
    I have found the color palettes but can't seem to incorporate them into my backgrounds palette.
    And it always helps for you to dientify the version of iPhoto that you are using
    LN

  • Color and Swatches palette behaviour in Illustrator CS5

    I only use the Swatches palette, but when I click the Tools palette color chips to select between stroke and fill, Illustrator brings up the Color palette by default; I have to go back and re-open the swatches palette - quite tedious.
    Is there any way to change this behaviour?
    I haven't been able to find anything useful in the Help or via Google - probably because I can't describe the issue in a few words!
    Thanks
    Rick
    Illustrator CS5 15.0.2 on Mac 10.6.6

    Yes - that works round it... !
    Thanks

  • Color and other palettes are too small --

    When I open color palette window or even character window, it isn't big enough to see for example, in the Color window - can't see the top RGB slider and number -- and I cannot resize this window. Character, can't see the lower items, like the anti alias menu. What can I do to fix this, it really shouldn't be like this. Thanks in advance!

    >
    "I love people who come in and say something significant. Get reading glasses, you crack me up."
    Go ahead and yuck it up, young buck. Not
    everyone
    MUST have them, but I'm willing to bet that 90% of people who spend 8+ hours a dayevery dayin front of a computer monitor could benefit from having a dedicated pair of glasses to wear while they work. And yes, I'm including people under 40...under 25, even. So it's a pretty safe assumption to make as a suggestion that would benefit you, as well.

  • Toolbars and Tools Palette show color AND grey Icons

    Running FMv12 on Win7.
    Both sets of icons are trying to show. However, Toolbars are cut off so only left several icons show, and remaining toolbar is blank all the way to right side of program window. Toolbar separators are shown all the way across, but segments are empty.
    At same time, Tools Palette, docked to left side of screen, shows dual set of icons also, but they are jumbled. That is, they are not neatly arranged in two columns, and color or grey set is trying to display on top of the other, slightly offset. As if trying to display two sets of two columns, but overlapped.
    * All above display correctly when FM first starts. Then, when User hovers something to use it, before he clicks, the screen changes as if tooltip timing, going to fail mode described above.  Recovery requires restarting FM.
    Also, document zoom, and other controls at bottom, are invisible until mouse hover. User has to hunt to find, and then with hover, controls appear as if tooltip; and then click works normal. Different from 3 above, these controls do not show at FM start/document open.
    What we've tried:
    Screen/Display Resolution. Tested high and low settings.
    Undocking toolbars, palette, and document window. No effect.
    Different combinations of Color/Grey and Large/Normal icon settings in preferences. Settings take affect correctly, but above symptoms still present.
    Any help, please?
    Dave

    [bump/update]
    *Still no fix.
    *Answering your last question, no other Apps are acting up. We did shut down SnagIt by TechSmith that was running in SysTray Program Icons. But other Screen Grab Apps, such as Windows Snip Tool, are not running, that we can tell looking at Task Mngr Apps & Processes. But you know how long that processes list can be. And I have no clue about what most of them are. But nothing stands out, even looking at the Description Column.
    *So here is what we've tried. I would not know if all this writing may be overkill here in the forums. Someone feel free to say if it is. . . .
    User's IT ran windows updates and company/desktop updates to give Drivers a chance to be the problem.
    Then they uninstalled and reinstalled FMv12.
    In User's AppData maker.ini, I deleted MakerWin and ConsoleWin window position lines, forcing FM to rewrite them.
    I replaced his fmtoolbar.xml and fmtoolbar_review.xml files with mine.
    *Here is what we will try next.
    They will uninstall FMv10, and then reinstall v12 again. I do not expect there are issues between these two versions of FM. Originally, I understood other users there have v10 installed -- but now I find out, only on a second pc!
    So they are also planning to put v12 on a separate pc for this user to see if it runs there.
    [Interestingly, speaking of interaction between versions: At my own workstation, I had v7 and v9 working. After installing v12, I could not get v9 to start. It began crashing during load. It was intended only for testing a while back, so I simply removed it and all is well; with v7 and v12 installed on this pc.]
    I am considering using my menus_xxx.cfg files next. His have significantly different dates that maybe FM is looking at, but cant hurt to try, even though the issue is with Toolbars and not Menus. Unless there is .cfg files for Toolbars.
    Anyway, there is an update. While I realize all these details are a ton of reading, I knew you would at least be curious as to status or outcome.
    Regards,
    Dave

  • Color palette problems using Toolbar and ImageList ActiveX Controls

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

  • How Do I correct red eye in ps Touch, and where is the color palette?

    I'm excited about the new ps touch android app. Some of the tutorials aren't all that easy to follow.
    Can anyone tell me how to correct red eye and how to access the color palette?
    Thanks for your help.

    Just to speed up the process:
    http://forums.adobe.com/community/photoshop_touch_for_phone
    http://forums.adobe.com/community/creative_cloud_touch_apps/adobe_photoshop_touch
    Gene

  • Animated gif changes color palette while playing

    Hi everyone,
    I've been creating animted gifs using Matlab and the ImageMagick suite (convert). If I open the gifs in Preview, the color comes out fine in each frame; however i I use Quicktime (which is necessary, that's what we use for presentations) the color palette will change as the frames play.
    I just got the newest version of Quicktime, hoping that it would solve the problem, but it didn't. Any ideas?

    I'm not familiar to the software but I can guess what is happening.
    Too many colors. A GIF is 8 bit (256 colors) but some of them are not used by all software. Windows and Mac's are different.
    Does the software offer a way to reduce the number of colors used? Can you get it down to 8 bit? Can you discard unused colors with some other software?
    Have you considered building an image sequence movie? These allow many different images formats and support up to 32 bit formats (millions of colors).
    QuickTime Pro ($30) can import a series of images as a movie. The file size is much smaller than any video format used today (just the total of the images file size).

  • INDD to PDF: web-safe color palette?

    Context: currently, the Google Docs Viewer/Embedder, when used to display a PDF in a browser, heavily downsamples images in the PDF resulting in grisly color changes and posterization. This has been discussed for a long time elsewhere on the web (example) and is something Google might eventually deal with.
    I assume Google's intention was to hack down bandwidth usage, which I don't begrudge them, but the results stand out glaringly in an otherwise vibrant WWW. Embedded fonts work fine, and the only other visual/layout errors can be with some more advanced design effects—unless they are flattened down to Acrobat 5 compatibility.
    With the nasty color changes, what I believe I'm seeing is a re-processing of the images in the PDF with ye olde web-safe color palette. Or maybe its paleolithic predecessor. FYI the source PDF is unaffected. And FYI, yes, I am aware of  many other options for embedding a PDF in a web page; I'd like to try and solve this one.
    My thinking is this: if I can output my InDesign file such that images are converted more gracefully to a web-safe palette, and possibly with more satisfactory color dithering, then the results via the Google Docs Viewer/Embedder might be improved, more predictable, good enough for now.
    I know how to do this with Photoshop, and I assume it's a Photoshop engine working behind the scenes in/for InDesign when processing images, so I'm hoping this is attainable.
    Semi-educated guesses:
    That a suitable color profile could be created and selected when outputting either PDF or PS, resulting in 255-color (indexed) RGB images in the final PDF layout.
    That the long way is to make alternate versions of each image used in the layout, swap them (such as with relink to file extension, e.g. GIF for TIF), and output a version specifically for embedding.
    Thanks in advance for any creative thinking.
    Edit: it's looking like the limit is far fewer colors, possibly 16. Gross. But I'm still curious about the possibility of a method for this, as it could have other applications.

    After getting both your replies, I went back and experimented some more. I am creating a pdf for a b&w book interior, and it is setup as an ID book, with two files. I was trying to generate the pdf from the book.indb file without the individual book indd files being open. That resulted in the screen in my initial question.
    I went back and doubleclicked both of my book indd files and selected both, then generated the pdf from the book.indb file. This time I got the proper choices Document CMYK - U.S. Web Coated ....

  • Reports (10.1.2.0.2) developer crashes when I try to import a color palette

    I had enough with this Reports Developer tool. Did not have this problem with 6i version (have been using for years) and do not have problem with changing the color palette with Forms in the 10.1.2.0.2 version. But the :(!@#$%! reports keeps crashing when I try to change (import) a color palette. The only option available is the Export color palette, the Import is always greyed out. This report that I am trying to change the color palette was originally designed with 6i reports tool and I am porting it to iAS format. It is running on Linux. If I start a new report (from scratch) in iDS (reports tool), then I have the paper layouts uses the new canvas of the iDS. But if you try to open up an old report, it shows the old color palette and does not allow importing the proper new color palette. I had no problem with changing the color palette when porting 6i forms to 10gR2 forms. Whe the hell the reports is not working? It supposed to be the same process to import a color palette. I need to port this old reports into new iAS format and this stupid color palette stuff is holding us back.
    Any step by step instructions to import a color palette in Reports, is appreciated. Write it for dummies please - I am tired and need step by step instructions please. I never liked the Reports tool (contrary to Forms) and I hate it now.
    Message was edited by:
    zaferaktan
    Message was edited by:
    zaferaktan

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Original Image Resolution and Color getting Distorted

    Hi All,
    I am using JAI for reading images from a source i have to read the images and than have to split the images
    initially i was using ImageIO.read() method to read images but for some images it was throwing error as
    javax.imageio.IIOException: Unsupported Image Type
         at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
         at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
         at javax.imageio.ImageIO.read(Unknown Source)
         at javax.imageio.ImageIO.read(Unknown Source)
         at deepzoomconvertor.Main.loadImage(Main.java:370)
         at deepzoomconvertor.Main.processImageFile(Main.java:238)
         at deepzoomconvertor.Main.reteriveAllImages(Main.java:221)
         at deepzoomconvertor.Main.main(Main.java:86)so in such exception cases i am trying to read the images using JAI and i am successful in reading images
    here is the piece of code i am using for this
      BufferedImage result = null;
       SeekableStream ss=SeekableStream.wrapInputStream(new FileInputStream(file), false);
               ParameterBlock pb = new ParameterBlock();
               pb.add(ss);
               RenderedOp rm=JAI.create("JPEG", pb);
               result=rm.getAsBufferedImage();
                 return result;it able to split images but the quality of images are poor it losts its original color format.
    can any one have any idea how to do it while retaining the quality of image color and resolution
    Thanks in advance
    Umesh

    The JPEG you are reading is a cmyk color space one. They're not common, but they do occasionally pop up in a collection of random jpeg images.
    The default JPEGImageReader that comes with the jdk cannot read them. And it will throw an exception - the exact same one you got - stating it can't. JAI's behavior is a little worse. It will read the image without exception, when in fact it to can't read it. It doesn't handle the cmyk aspect right, so you get a messed up image.
    The native JPEGImageReader that comes with installing [JAI-ImageIO|https://jai-imageio.dev.java.net/binary-builds.html] can read them. It appropriately decodes the ICC_Profile embedded within the JPEG and you get a cmyk BufferedImage. But if you wish to render this TYPE_CUSTOM BufferedImage, go grab a coffee while you wait for it to slooooowwwllly paint. You'll have to do a ColorConverOp to turn the cmyk BufferedImage into an rgb one (so Java2D can render it fast).
    Having done all this you'll find that 1) ColorConvertOp makes the image too bright and 2) The native PNGImageReader that comes with installing JAI-ImageIO has an affinity for returning TYPE_CUSTOM BufferedImages (arggg!!!).
    I'll help you fix points (1) and (2) if you get that far. Maybe the best choice is to simply give up on cmyk jpegs. They're only used in printing press environments, and people only use color space aware applications (like Photoshop) to manipulate them in any meaningful way.

  • Custom Color Palette - Chart Designer

    Hi all,  I need to change the colors that my pie chart uses.  You can do this in chart designer under the global settings section.  The property,  color pallete has 4 selectable entries,  Frog, Streamline, Tradeshow, and Custom.   By selecting "Custom", this means that I can choose the exact colors that I want to use, right?  If so, where and how do I specify the colors for my custom color palette.   Any reply would be appreciated.  Thanks.
    Regards,
    Rich Heilman

    Hi Rich,
    Did you go through my post here https://www.sdn.sap.com/irj/sdn/profile?userid=397656 ? I`m not 100% sure that you are able to do this using only Chart Designer. The problem is that you need association between series data id in cutomization XML and data XML. If you know such id on design time, you can re-design my example by moving generated piece of XML from WD to static customizing XML.
    Best regards, Maksim Rashchynski.

  • Custom Color Palette for Charts

    Hi all,
    Can I define the colors of a chart by a custom color palette in Design Studio (as you can do it in Web Intelligence) or does SAP intend to implement such a function in a next release? With CSS this isn't fully possible, because it doesn't allow you to coloring the additional line like the corresponding main line.
    I've already seen and commented this post Re: Custom Color Palette for Charts / CSS, but it's still unanswered. Maybe I've with a new discussion more success.
    Thank you and kind regards
    Silvan

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • Custom color palette in WAD charts

    Hi BI Experts,
    we are trying to create a custom color palette, which we want to apply to all your WAD charts.
    Can anyone tell us how to do this?
    Of course we can customize the colors in each chart, but that's a hell of a lot of work. Moreover, there doesn't seem to be any way to save the custom colors, but we have to recreate the colors with the color picker for every single chart.
    The WAD chart wizard allows to choose between color palettes "Enjoy", "Streamline", "Tradeshow" and "User specific".
    If it is not possible to create a custom color palette, can we modify one of these SAP color palettes? What does "User specific" mean?
    Any help will be much appreciated (and of course rewarded with points).

    Moin, bei dem Problem kann ich leider überhaupt nicht helfen. Solltest Du allerdings, wie ich annehme, in Göttingen studiert haben und dann ein paar Jahre in den USA gewesen sein, dann melde Dich doch einfach mal, so Du Lust hast.
    Besten Gruß,
    Andi

  • Custom Color Palette for Charts / CSS

    Is there a way of creating a custom color palette for charts (as you can do it in WebIntelligence) and install it on the tomcat?
    Or will I have to set my custom colors in the css? And if so: where can I find a description of classes for Charts? Is there any description of css classes at all? All I could find was a list of classes for a crosstab (but no description).
    Thank you
    Carola

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

Maybe you are looking for

  • Time Machine Recovery

    I'm planning on deleting the whole system to speed up my computer, I was wondering if I use time machine to recover my setting, will it update it just as it is now? or will I have to reinstall some apps? Currently I'm having some problems with the re

  • Sorting of data in a Table

    Hi I am displaying some data in a table, but when i sort any column of the table output, it is giving preference to the rows which are in Capital letter then it is considering small. Eg: A B C a b c Is there any work around to make the sort as: A a B

  • Radio Buttons problem

    Hi i ahve developed a GUI with 2 toggle buttons options[0] and options[1],I have also created an "OK" Button.the programming is working fine ,but i now want to implement the action performed method.The user must select which option he/she wants and t

  • We receive a .numbers doc from a friend every week.  I can open it on my ipad and on my iphone but on the mac it comes as a zip doc and I cannot open it.  why?

    Why can't I open an email attachment on my mac?  The attachment comes as a .numbers doc on my ipad and iphone and I can open it easily but it comes as a .zip file on the mac and cannot open it.  Why???

  • Problem in activating the environment in COPA operating concern

    Dear Experts, I got the following message when I tried to activate the environment based on client-specific part for my newly created operating concern. << Inconsistency in the dictionary for the structure "KOMK_KEY_U" >> Does anyone know what happen