Skip to content

Commit

Permalink
changed blockproc tile size to maximize RAM use
Browse files Browse the repository at this point in the history
  • Loading branch information
ek-adapt committed Feb 12, 2021
1 parent ab207e0 commit d820c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pixelClassifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
fprintf('\n-------------------------\nBlock processing file:\t%s\n', imagePaths{imIndex})
fun = @(block_struct) pixelClassifier_function(block_struct.data,...
env_copy, model, names{imIndex}, mapinfo);
blockproc(imagePaths{imIndex}, [1024, 1024], fun, 'Destination', f.pth_out,...
blockproc(imagePaths{imIndex}, [2048, 2048], fun, 'Destination', f.pth_out,...
'UseParallel', true, 'BorderSize', [50, 50], 'PadMethod', 'symmetric') % NOTE biggeotiffwrite uses tilesize 1024x1024 <---------- HERE
add_tiff_georef(f.pth_out, [f.pth_out(1,1:end-8), '.tif'] , env.constants.noDataValue_ouput)
disp('Finished classification.')
Expand Down

0 comments on commit d820c89

Please sign in to comment.