File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828
2929if any(siz <= overlap ); error(' Size of patch must be greater than the amount of overlap' ); end
3030
31- x_start = 1 : siz(1 )-overlap(1 ): sizY(1 );
31+ x_start = 1 : siz(1 )-overlap(1 ): sizY(1 )-overlap( 1 ) ;
3232x_end = min(x_start + siz(1 ) - 1 ,sizY(1 ));
3333if (x_end(end ) - x_start(end ) + 1 < min_size(1 )) || (length(x_end ) > 1 && (x_end(end ) - x_end(end - 1 ) < min_size(1 )))
3434 x_start(end ) = [];
3535 x_end(end - 1 ) = [];
3636end
3737
38- y_start = 1 : siz(2 )-overlap(2 ): sizY(2 );
38+ y_start = 1 : siz(2 )-overlap(2 ): sizY(2 )-overlap( 2 ) ;
3939y_end = min(y_start + siz(2 ) - 1 ,sizY(2 ));
4040if (y_end(end ) - y_start(end ) + 1 < min_size(2 )) || (length(y_end ) > 1 && (y_end(end ) - y_end(end - 1 ) < min_size(2 )))
4141 y_start(end ) = [];
4242 y_end(end - 1 ) = [];
4343end
4444
4545if dimY == 3
46- z_start = 1 : siz(3 )-overlap(3 ): sizY(3 );
46+ z_start = 1 : siz(3 )-overlap(3 ): sizY(3 )-overlap( 3 ) ;
4747 z_end = min(z_start + siz(3 ) - 1 ,sizY(3 ));
4848 if z_end(end ) - z_start(end ) + 1 < min_size(3 )
4949 z_start(end ) = [];
You can’t perform that action at this time.
0 commit comments