Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Nov 22, 2024
1 parent 1e1f22b commit a995548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -40951,7 +40951,7 @@ namespace cimg_library {
(_kernel._depth<=3 && _kernel._width<=3 && _kernel._height<=3)) &&
xstride==1 && ystride==1 && zstride==1 &&
xoffset>=0 && yoffset>=0 && zoffset>=0 &&
xoffset + _xsize<_width && yoffset + _ysize<_height && zoffset + _zsize<_depth) {
xoffset + _xsize<=_width && yoffset + _ysize<=_height && zoffset + _zsize<=_depth) {
const unsigned int M = cimg::max(_kernel._width,_kernel._height,_kernel._depth);
_kernel.assign(_kernel.get_resize(M + 1 - (M%2),M + 1 - (M%2),_kernel._depth>1?M + 1 - (M%2):1,-100,
0,0,1,1,1),false);
Expand All @@ -40967,7 +40967,7 @@ namespace cimg_library {
_xcenter==_kernel.width()/2 && _ycenter==_kernel.height()/2 && _zcenter==_kernel.depth()/2 &&
xstride==1 && ystride==1 && zstride==1 &&
xoffset>=0 && yoffset>=0 && zoffset>=0 &&
xoffset + _xsize<_width && yoffset + _ysize<_height && zoffset + _zsize<_depth) {
xoffset + _xsize<=_width && yoffset + _ysize<=_height && zoffset + _zsize<=_depth) {

switch (_kernel._depth) {
case 3 : { // 3x3x3 centered kernel
Expand Down Expand Up @@ -41149,7 +41149,7 @@ namespace cimg_library {
!_xcenter && !_ycenter && !_zcenter &&
xstride==1 && ystride==1 && zstride==1 &&
xoffset>=0 && yoffset>=0 && zoffset>=0 &&
xoffset + _xsize<_width && yoffset + _ysize<_height && zoffset + _zsize<_depth) {
xoffset + _xsize<=_width && yoffset + _ysize<=_height && zoffset + _zsize<=_depth) {

// Special optimization for 1x1 kernel.
cimg_pragma_openmp(parallel for cimg_openmp_if(is_outer_parallel))
Expand Down

0 comments on commit a995548

Please sign in to comment.