Skip to content

Commit

Permalink
smurf: Fix bug in smf_meanshift when using bad mask instead of qual mask
Browse files Browse the repository at this point in the history
  • Loading branch information
David Berry committed Sep 21, 2012
1 parent b4dbef0 commit 5168589
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions applications/smurf/libsmf/smf_meanshift.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
* History:
* 1-DEC-2011 (DSB):
* Initial version.
* 21-SEP-2012 (DSB):
* Half box sizes were undefined when using bad value masking.
* {enter_further_changes_here}
* Copyright:
Expand Down Expand Up @@ -144,17 +146,17 @@ void smf_meanshift( double *indata, double *outdata, int nel, int stride,
/* Initialise a pointer to the current output data value. */
pout = outdata;

/* Get the half width of each box. */
hb1 = box1/2;
hb2 = box2/2;

/* First deal with cases where we are using a quality array. */
if( qual ) {

/* Initialise a pointer to the input quality value at the centre of the
current filter box. */
qin = qual;

/* Get the half width of the box. */
hb1 = box1/2;
hb2 = box2/2;

/* Loop round all output elements. */
for( iout = 0; iout < nel; iout++,pout++ ) {

Expand Down

0 comments on commit 5168589

Please sign in to comment.