Results 1 to 5 of 5
  1. #1
    rohankapoor is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default image processing

    i m cropping the image into number of blocks of small image and i m storing it into in the image array...
    i want to store this array somewhere so i can retrieve it afterwards for further use....
    plz help me...
    how can i do this.....

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    12

    Default

    What help do you need exactly?
    Mak
    (Living @ Virtual World)

  3. #3
    rohankapoor is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default

    I want to store array of image into file and retrieve it later...

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,342
    Rep Power
    12

    Default

    an array of 'BufferedImage' objects? Buffered images aren't serializable, however, if you get turn each image into a byte array, you can simple write the bytes to a file and load them back in later.

  5. #5
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    12

    Default

    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;

    File file = new File("image.jpg");
    BufferedImage img;
    img = ImageIO.read(file);

    Then you have methods like img.getRGB() which returns an integer array.
    I guess that's what you need to manipulate the values to binary or integer.
    ImageIO.read will read most common imagefile-types (BMP, JPG, et.c)

    I hope this was useful.
    Mak
    (Living @ Virtual World)

Similar Threads

  1. image processing
    By sunithamm in forum Advanced Java
    Replies: 6
    Last Post: 12-30-2010, 12:46 PM
  2. Image processing
    By ranadav in forum Advanced Java
    Replies: 3
    Last Post: 06-05-2010, 04:22 PM
  3. Image processing
    By syarizma in forum Advanced Java
    Replies: 6
    Last Post: 08-17-2009, 06:15 AM
  4. Image Processing
    By Josh_FL in forum Advanced Java
    Replies: 4
    Last Post: 12-30-2008, 03:45 AM
  5. image processing
    By sathish natrajan in forum Java 2D
    Replies: 2
    Last Post: 11-06-2008, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •