Results 1 to 3 of 3
  1. #1
    shaungoater is offline Member
    Join Date
    Nov 2007
    Posts
    13
    Rep Power
    0

    Default Storing data permanently

    I am writing a program that compares images. I need to permanently store the images along with some data for these images. What is the best way to do it. Can i use xml to store the images along with corresponding data. Or should i just store the images in a folder and have a text file with the path names of the images and their data which can be read in at startup. Any other ideas for solutions will be much appreciated.

  2. #2
    mindwarp is offline Member
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    0

    Default

    I deal with 100's of images of human faces which I manipulate using java...

    my experience leads me to:

    1. how big are the images?
    2. how many do you need to have in memory at a time?
    3. dealing with many large images at the same time SLOWS down your system
    4. have you looked at extracting "feature" information from the images instead of dealing with the complete images themselves? that way you can deal with less data...

  3. #3
    shaungoater is offline Member
    Join Date
    Nov 2007
    Posts
    13
    Rep Power
    0

    Default

    I was planning on having a number of images in my database which i can add more to and then run my program to extract rgb info from the image. Once this is done i do not need to access the image just the data. The idea is that i can find similar images using this data. So i only have to get the actual image file if it is a search result or the image being compared otherwise i am just comparing numerical data. Do you think it is better to have a folder of actual images and then an xml file or just a text file containing all the data. I was planning and setting the data up in some sort of tree format so that some images can be discarded before the search starts. For example if the image is predominantly blue then only compare it with other predominantly blue images.

Similar Threads

  1. Replies: 2
    Last Post: 03-31-2008, 06:11 AM
  2. storing and retrieving a file as such
    By anil_manu in forum Advanced Java
    Replies: 0
    Last Post: 03-11-2008, 02:27 PM
  3. Replies: 0
    Last Post: 11-27-2007, 11:23 AM
  4. Storing Data
    By Khorod in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 06:48 AM
  5. Problem with storing and retrieving from a textfile
    By Albert in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2007, 04:01 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
  •