ajayk0719 / jai-tools

Automatically exported from code.google.com/p/jai-tools
0 stars 0 forks source link

Problem using RandomIter with DiskMemImage 1.0-M1 #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Report by email from Daniele:

I have used the DiskMemImage several times and it is very useful but  I have a 
problem. I use it 
with a RandomIter and usually it work well but now it report this problem:

09-Nov-2009 10:46:53 jaitools.tiledimage.DiskMemImage releaseWritableTile
WARNING: Attempting to release a tile that was not checked-out
09-Nov-2009 10:46:53 jaitools.tiledimage.DiskMemImage releaseWritableTile
WARNING: Attempting to release a tile that was not checked-out
09-Nov-2009 10:46:53 jaitools.tiledimage.DiskMemImage getWritableTile
WARNING: Attempting to get tile 1,0 for writing while it is already checked-out

The code is:
                    multitcaRandomIter = RandomIterFactory.createWritable(multitcaImage, null);

and then a loop:

                            ipos = i + dir[k][0];
                            jpos = j + dir[k][1];
                            double thisMultiTca = multiticaRandomIter
                                    .getSampleDouble(jpos, ipos, 0);
                            double previusMultiTca= multitcaRandomIter.getSampleDouble(j, i, 0);
                            multitcaRandomIter.setSample(jpos, ipos, 0, thisMultiTca+
                                    +previusMultiTca);

Original issue reported on code.google.com by michael.bedward@gmail.com on 9 Nov 2009 at 11:51

GoogleCodeExporter commented 9 years ago
Fix for this prolem committed to trunk (r1003).  Changed the way that 
DiskMemImage tracks tile writers to be 
more in accord with JAI's TiledImage class. Now allows multiple simultaneous 
writers per tile.

Original comment by michael.bedward@gmail.com on 9 Nov 2009 at 12:48