How can you convert an image to ydbr format?

Hello all. I can not work out how to simply input an image and convert it to ycbr and save it as a new image.
Can anyone help please?
Kind Regards

OK I have also found this code:
public static void rgb2ycbcr(int r, int g, int b, int[] ycbcr) {
          int y = (int)( 0.299 * r + 0.587 * g + 0.114 * b);
          int cb = (int)(-0.16874 * r - 0.33126 * g + 0.50000 * b);
          int cr = (int)( 0.50000 * r - 0.41869 * g - 0.08131 * b);
          ycbcr[0] = y;
          ycbcr[1] = cb;
          ycbcr[2] = cr;
However I have no idea of how to use it. The source did not specify what all the parameters are. How can I use this in my code from a bufferedimage to displaying the new image?
Thanks again.
Looking forward to your answers (3 more Dukes added)

Similar Messages

  • How can i convert CR2 images into jpg format, without iPhoto?

    i just import a lot of images with the format .CR2 to mac through "Image capture" is there an app to convert the frmat into .jpg, app like image capture or something like that?

    If Canons software doesn't work...?
    Try Snap Converter, File Juicer or Contenta Converter

  • How can I convert an Image ( or BufferedImage ) to Base64 format ?

    Hi folks...
    How can I convert an Image, or BufferedImage, to the Base64 format ?
    The image that I want to convert, I get from the webCam connected to the computer...
    Anyone can help me ?
    Rodrigo Kerkhoff

    I suggest you read this thread concerning this:
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=477461
    Failing that, Google is your friend.
    Good luck!

  • How can you convert a PDF File into a picture format for uploading?

    How can you convert a PDF File into a picture format for uploading?

    If you have Acrobat 11, you'd select: File > Save As Other > Image
    and select one of the available image formats.

  • How can you upload an image to MYSQL using php?

    Ok this is a joint thread with one of my other ones because no one else  was posting on it, so I did not get what I needed, so, How can you  upload an image to mysql so when some one logs on to my site, they see  or can upload there own avatar, now there are loads of problems with  this, 1) many people don't know how, 2) It's not every day you try to  encode a image into mysql, 3) Letting people upload images into mysql  can cause traffic problem with people trying to log in. So that's it.

    Uploading images into MySQL is a bad idea, for more reasons than you mention. You should store the images in a directory on the server instead. But if you want to learn the hard way, here is the method:
    The mysql data type must be blob.
    The form enctype must be multipart, like this: enctype="multipart/form-data"
    The form input field myst be type file, like this: <input type="file" name="upload"/>
    Here is example code that prepares the variable $photodata to be inserted into the database.
      $uploadfile = $_FILES['upload']['tmp_name'];
      $photoname = $_FILES['upload']['name'];
      $uploadtype = $_FILES['upload']['type'];
      if ($uploadfile != "") {
    $tempfile = fopen($uploadfile, 'rb');
    $filesize=filesize($uploadfile);
    $width=getimagesize($uploadfile);
    $widthx=$width[0];
    $heightx=$width[1];
    if (($widthx > 102) or (heightx > 135)){
    $image_too_big = " but the image size was too large and was not submitted.";
    } else {
    $photodata = fread($tempfile, filesize($uploadfile));
    $photodata = addslashes($photodata);

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • Converting an MP3 to WAV -- How can I convert an MP3 to wav format, 16 bit

    How can I convert an MP3 to wav format, 16 bit, 44,1 khz? I like the program Switch which I know can convert MP3s, but how to I set it up for the specific settings that I need?

    Just import into a logic session. Then bounce at the specs you require. Logic or Waveburner, iTunes and even Quicktime I think can each do this easily.
    A question though. I am assuming you are converting an MP3 to 44.1/16 bit just so you can play the file in a consumer quality CD player?? IF so - that makes sense.
    But if you are doing this because you think it will improve the sound quality of your MP3, I will save you some time here. It won't improve the sound quality at all. It will just turn the MP3 into a larger audio file.
    44.1/16 bit resolution enables you to have a much better sounding file than MP3 formats, but not by going at it this way.
    No offense to you if you know all of this already. I am assuming that you may not know this - because if you did you would also likely know how to convert an audio file.
    Cheers
    Darrell

  • How can you make an image adjustment on all images in a Stack

    If one had a stack of images that need a brightness adjustment. How can you preform the adjustment a stack of images that need the same amount of adjustment?
    Many times I have a stack of images that need a +10 brightness adjustment on them and it would save a lot of time if I could do it on a whole stack of images.

    good points, as l/s takes every adjustment ... including autolevels/exposure ... BUT DOESN'T make them auto to the next image(s), it just lifts the current image settings !!! which is fine for a five shoot series all at the same exposure, but not so much when it is not !!!

  • How can you use one image and edit it three different ways to export later?

    I am a new Lightroom 3 user.  How can use the same image and edit it multiple ways to produce mulitple images to later export?  For example,  I have a picture of a bride and groom.  I want to use that image and create a color image, a black and white image, and a close up of their hands.

    Do I need to do either of those options before I start editing the image at all?  For example,  what if I am working on the image and doing some creative edits.  Then I think of another option that I could do.  Is it too late at that time or can I still get the original image to begin with?

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

  • How can I convert a picture in PDF format to Excel?

    How can I convert a picture (layout of floor plan) into Excel?

    This article shows how to disable OCR during the conversion: https://forums.adobe.com/docs/DOC-3062 - do the opposite to enable it.

  • How can you convert a BufferedImage into a RenderedImage?

    I'm using the Histogram class and I'm wondering how I can easily convert my BufferedImage into a RenderedImage so that I can use this class.
    Of course, if I can use my BufferedImage object with the Histogram class, please let me know =D.

    If you have Acrobat 11, you'd select: File > Save As Other > Image
    and select one of the available image formats.

  • How can I convert an image created in Photoshop into a format that Java's ImageIO library will take?

    Hi all,
    I've been trying to write an image resize tool to use the Lancoz resample algorithm to resize images to a high standard in Java.  The library with the algorithm/filter in it is mortennobel's image scaling library and it takes a buffered image as an input and returns the resized image as desired.  However the trouble I’m having is that the ImageIO library in Java, a standard library, which converts images given to its read method to buffered images doesn't accept certain images created in Photoshop and so it throws an exception.  My library needs to be fully automated to process possible thousands of images at a time and so manually converting them by resaving them as JPEG's is really feasibly.  Is there some way I can convert these images from Adobes Exif format to standard JFIF format?  I've tried simple inserting the APP0 marker from a JFIF image in-between the SOI and APP1 marker but the ImageIO library still failed.
    The above image is a screenshot of the binary in hex of one of the images that cause an Invalid Format exception when passed to ImageIO.
    Any help you could offer me with this would be much appreciated.
    Kind regards and thank you,
    Alexei Blue
    Science Warehouse.
    NB: I previously posted this post in Developers but was told to post it in a Photoshop forum so apologies if this is the incorrect formum

    The image scaling library does have a BiCubicFilter in it so I'll experiment around with them and see what happens.  As for the imageIO library I think it accepts Exif image types, but still for some reason it just doesn't like Adobe Photoshop types.  Maybe its the colour map it doesn't like I just can't seem to work out what's wrong which is slightly frustrating but looking round to see if I can find an answer

  • How can you make an image change every time you refresh a page?

    Hi.
    I've recently redone my website and was wondering how I could make the image on my main page change every time you refresh the page?
    Like is there a certain script you can use?
    Here's my website
    www.liamfawcett.com
    Thanks

    Copy & Paste the following JavaScript code between the <head> and </head> tags in your HTML document, in Code View of course.
    <script type="text/javascript">
    <!--//Random Banner image on Page Reload
    //store the images in arrays below
    images = new Array(5);
    images[0] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[1] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[2] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[3] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[4] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    index = Math.floor(Math.random() * images.length);
    document.write(images[index]);
    //done
    // -->
    </script>
    In the array, change URLs (http://www.example.com) to your own links.  Change images (some_image.gif) to your own images.
    Save page.  Preview in browser.  Hit refresh (F5 or Ctrl+R) to see the images change.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How can you print mirror image from word 2010 on the HP Photosmart c310 printer

    Trying to print mirror image from Microsoft 2010 on a windows 7 computer to the HP Photosmart C310 printer. Can not find an option. Please advise.

    Judith
    Perhaps you can enlighten us as to what "does not print correctly" actually means.
    Miss-spells your name? or what?
    How have you set up your Page set-up?
    It has to agree with how you are feeding the envelope in and what printer driver you are using.
    Peter

Maybe you are looking for

  • Logging the information from multiple tables to a txt file

    To All, I am working in a bench test set in which I test different devices via serial. For each of them, I have a log table. Is there a way I could log all those tables in a singe text file?  Thank you, Cosmica  Solved! Go to Solution.

  • Cut copy paste option missing in Lumia

    Where is that? I am trying to move some pics one folder to another from photos..do not suggest me 3rd party apps or files... Solved! Go to Solution.

  • How do I get maps to give me directions?

    I can get directions on maps but when I hit start I don't get the voice or dynamic direction so I have to scroll the top green instruction bar to get the next turn. Sometimes if I go in and out it starts working as a normal sat nav and is pretty good

  • Attachment display by ITS instead http Service

    Hi, we use EBP 4.0 Bid Scenario. Our Support package level is: SAP_BASIS     620       0036     SAPKB62036 SAP_ABA        620       0036     SAPKA62036 BBPCRM          400       0004     SAPKU40004 PI_BASIS         2003_1_620      0005     SAPKIPYH55

  • Preventing word wrapping in JTextpane

    I'm stumped about preventing word wrapping in a JTextpane. Any suggestions?