Tile processing implemented. Somehow in recent commits, NR settings are not being saved consistently in the pp3.

This commit is contained in:
Emil Martinec
2012-03-10 15:12:47 -06:00
parent f47b4b5bb0
commit 05bf171f9c
5 changed files with 884 additions and 22 deletions

View File

@@ -233,8 +233,8 @@ namespace rtengine {
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// TODO: begin block processing
/*const int tilesize = 1000;
/*
const int tilesize = 1000;
const int overlap = 100;
if (width>tilesize and height>tilesize) {
const int numtiles_W = ceil(((float)(width))/(tilesize-overlap));
@@ -243,6 +243,17 @@ namespace rtengine {
int tileheight = ceil(((float)(height))/(numtiles_H));
tilewidth = tilewidth + (tilewidth&1);
tileheight = tileheight + (tileheight&1);
for (int tiletop=0; tiletop<height; tiletop+=(tileheight-overlap)) {
for (int tileleft=0; tileleft<width; tileleft+=(tilewidth-overlap)) {
new
//fill tile from image
for (int i=0; int<tileheight; i++) {
//do stuff
}
}
}
}*/
LabImage * labin = new LabImage(width,height);