|
Need Some Java Help
|
View this Thread in Original format
| DRM |
I am working on some java for uni and i aint got a clue so wondering if any1 can help. Basically i need to make a program that can read an image using awt, display it on the screen, put it in an array, compress it using huffman coding and then write that to a file and also be able to reverse the compression.
If any1 can help with all or any of that i would be eternily grateful :) |
|
|
| itsTrueSonic |
| quote: | Originally posted by DRM
I am working on some java for uni and i aint got a clue so wondering if any1 can help. Basically i need to make a program that can read an image using awt, display it on the screen, put it in an array, compress it using huffman coding and then write that to a file and also be able to reverse the compression.
If any1 can help with all or any of that i would be eternily grateful :) |
i don't know if this helps you or not, but i believe that you just create an array of byte data type bits to read each bit in the image. Then you can apply the Huffman code to the array to apply the compression.
Do you have the formula for the Huffman code? i dont know it by heart. i have books on it, but you can also google it. i had to do a dumb paper on the effects of the Huffman code on images compared to other compression algorithms. |
|
|
| DRM |
yeah i think your right on the logging the data using each bit into an array. as far as i know imageio from the awt class does that for you.
i will have to google the huffman forumular as i dont have it.
stop totally lost on how to go about it tho :conf: |
|
|
| itsTrueSonic |
ok cool .. the whole awt thing and picking up the image should be simple for you .. you sound like you know how to pick up the image using awt objects .. i don't know much about the awt classes, so i can't really help you out there ..
but of course the biggest hurdle is the huffman code .. any mathematics majors in these forums by the way?? they should know more about these complex algorithms .. hahhaha ..
are you taking some kind of stegonography class or something? .. stego stuff is cool, but it can also be very brain damaging when working with the algorithms .. :whip: :whip:
help here
this can help you somewhat ..
| quote: | Originally posted by chojin
i'll probably also need help. if anyone is a java nut and fancies doing it for me/some of it, much appreciated :p
haha ;)
http://chojin.devour.org/ProjectHolidays.doc
lot simpler than the above one too :) |
are you sure this is your assignment? .. i'll volunteer to do some of your backbone work (not all .. :haha: :haha: ) .. just tell me when it is dued, and i will give you a hand on this .. sounds like something very big to handle for one person .. |
|
|
|
|