User Profile

Collapse

Profile Sidebar

Collapse
fluffybunny87
fluffybunny87
Last Activity: Dec 6 '06, 08:15 PM
Joined: Nov 2 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • fluffybunny87
    replied to Convert image from RGB to LMS
    in Java
    Here's more info to help with understanding what I'm doing. It's the same thing from above with with some added stuff to it. Thanks again for your help!


    I need to convert an image from RGB format to LMS format using matrix's and an array of double to hold the LMS values as they're created. I need to take each pixel (R, G, and B) and and multiply it by the combined matrix shown below. Any ideas? I also know that I need to convert...
    See more | Go to post

    Leave a comment:


  • fluffybunny87
    started a topic Image comments
    in Java

    Image comments

    Do you know code for skipping over comments in the header of an image? I'm writing a program to read an image in, modify it, and then shoot out a new image but I can only read certain images that don't have comments in them. Here is the code that I have, but it won't work for some reason.

    Code:
    public static int getNumber(DataInputStream rd) throws IOException 
            {
            int num;
            int number = 0;
    ...
    See more | Go to post

  • fluffybunny87
    started a topic Convert image from RGB to LMS
    in Java

    Convert image from RGB to LMS

    I need to convert an image from RGB format to LMS format using matrix's and an array of double to hold the LMS values as they're created. I need to take each pixel (R, G, and B) and and multiply it by the combined matrix shown below. Any ideas? I also know that I need to convert the byte value: (val + 256) % 256.

    {0.3811,0.5783, 0.0402}
    {0.1967,0.7244, 0.0782}
    {0.0241,0.1288, 0.8444}

    Thanks for your help!
    See more | Go to post

  • fluffybunny87
    replied to Header comments
    in Java
    I have to write a program in Java to read a PPM file from standard in and output put it in grayscale using PGM format to standard out. To test the program, I redirect a PPM file to standard in, and redirect to output to a file e.g. java RGBtoGray < in.ppm > out.pgm.

    In the code of a picture, there are sometimes comments or other things that don't need to be read to output the image, I need to know how to skip over the unwanted...
    See more | Go to post

    Leave a comment:


  • fluffybunny87
    started a topic Header comments
    in Java

    Header comments

    Hi, I am writing a java program that will read an image in, convert it to greyscale, and then shoot it back out into a new file. The only problem is, I can't figure out how to make my program skip over header comments in the original image, any ideas? Thanks for any help!
    See more | Go to post

  • Just to make the new output image look as though it's been rotated 90 degrees....
    See more | Go to post

    Leave a comment:


  • I can write code changing a photo from one format to another. I just need help with the actual code to rotate an image and then where to put it in the rest of the code....
    See more | Go to post

    Leave a comment:


  • fluffybunny87
    started a topic Need help with code for Rotating an image
    in Java

    Need help with code for Rotating an image

    I have an assignment to rotate an image. I am fairly new to programming and don't really understand how to put the code together to produce an end result of a picture being rotated. I will take any help that is offered. I have to write a program in Java to read a PPM file specified on the command line and output it to standard out with it being rotated 90 degrees. I have to use read to read in the image's binary data without a loop. Thanks!
    See more | Go to post
No activity results to display
Show More
Working...