Skip to main content

color correction on giant tiff on the fly

3 replies [Last post]
caller
Offline
Joined: 2014-02-16
Points: 0

Hi,

I have to handle VERY large (1-2GB) Tiff files, and only need to do some RGB manipulations on pixels, where I only make local corrections (color of a modified pixel is only depending on its old values, but not on e.g. neighbor pixels).
Is their a way to read the file as some kind of Pixel stream, make adjustments on the RGB values, and write the stuff immediately to another file? I will not have enough memory to store the entire file in RAM (or at least I hope I could avoid it)

Thx for any hints...
If you have different hints than JAI, I also would appreciate them!

THX

-Marco

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
susannamoore
Offline
Joined: 2014-03-13
Points: 0

The simplest way to fiddle with image data is to take each pixel and change the value of one or more of its channels: red, green, blue and alpha (transparency), also known as R, G, B and A for short. And I am also interested in pixel issue and I had searched through the web. An aritcle is related about pixel manipulation:
http://www.rasteredge.com/dotnet-imaging/image-processing-retrieve-infor...

But this article is not so comprehensive to solve your problem I guess. So please google to find more.

caller
Offline
Joined: 2014-02-16
Points: 0

I know a lot about manipulating RGB.... but my question is: could I do this on some kind of stream, so I don't need to load the whole (GIANT) file into memory..

thx
-marco

susannamoore
Offline
Joined: 2014-03-13
Points: 0

I see. I'm not specilized in this. Sorry about cannot help.
Here, I searched topic about Reading and Writing out TIFF image in Java. hope it helps!
http://stackoverflow.com/questions/2898311/reading-and-writing-out-tiff-...