diff options
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c b/source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c index a7ec0986b51..b7ebb7d291b 100644 --- a/source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c +++ b/source/blender/nodes/composite/nodes/node_composite_doubleEdgeMask.c @@ -716,10 +716,11 @@ static void do_allEdgeDetection(unsigned int t, unsigned int rw, unsigned int *l is also empty. If both conditions are true for any one of the 4 adjacent pixels then the current pixel is counted as being a true outer edge pixel. */ - if((!lomask[pix_nextCol] && !limask[pix_nextCol]) || \ - (!lomask[pix_prevCol] && !limask[pix_prevCol]) || \ - (!lomask[pix_nextRow] && !limask[pix_nextRow]) || \ - (!lomask[pix_prevRow] && !limask[pix_prevRow])) { + if((!lomask[pix_nextCol] && !limask[pix_nextCol]) || + (!lomask[pix_prevCol] && !limask[pix_prevCol]) || + (!lomask[pix_nextRow] && !limask[pix_nextRow]) || + (!lomask[pix_prevRow] && !limask[pix_prevRow])) + { in_osz++; // increment the outer boundary pixel count lres[a]=3; // flag pixel as part of outer edge } else { // it's not a boundary pixel, but it is a gradient pixel @@ -773,10 +774,11 @@ static void do_adjacentEdgeDetection(unsigned int t, unsigned int rw, unsigned i is also empty. If both conditions are true for any one of the 4 adjacent pixels then the current pixel is counted as being a true outer edge pixel. */ - if((!lomask[pix_nextCol] && !limask[pix_nextCol]) || \ - (!lomask[pix_prevCol] && !limask[pix_prevCol]) || \ - (!lomask[pix_nextRow] && !limask[pix_nextRow]) || \ - (!lomask[pix_prevRow] && !limask[pix_prevRow])) { + if((!lomask[pix_nextCol] && !limask[pix_nextCol]) || + (!lomask[pix_prevCol] && !limask[pix_prevCol]) || + (!lomask[pix_nextRow] && !limask[pix_nextRow]) || + (!lomask[pix_prevRow] && !limask[pix_prevRow])) + { in_osz++; // increment the outer boundary pixel count lres[a]=3; // flag pixel as part of outer edge } else { // it's not a boundary pixel, but it is a gradient pixel @@ -786,10 +788,11 @@ static void do_adjacentEdgeDetection(unsigned int t, unsigned int rw, unsigned i } } else { - if((!limask[pix_nextCol] && lomask[pix_nextCol]) || \ - (!limask[pix_prevCol] && lomask[pix_prevCol]) || \ - (!limask[pix_nextRow] && lomask[pix_nextRow]) || \ - (!limask[pix_prevRow] && lomask[pix_prevRow])) { + if((!limask[pix_nextCol] && lomask[pix_nextCol]) || + (!limask[pix_prevCol] && lomask[pix_prevCol]) || + (!limask[pix_nextRow] && lomask[pix_nextRow]) || + (!limask[pix_prevRow] && lomask[pix_prevRow])) + { in_isz++; // increment the inner boundary pixel count lres[a]=4; // flag pixel as part of inner edge } else { |