Fix documentation of hotpixels parameters #778
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checking against the code, the descriptions were wrong.
d->multiplier = p->strength / 2.0;in commit_params)float mid = *in * multiplier-- this is the current pixel multiplied based on strength, and is used as the actual difference threshold, it's not a blending paramif(*in > threshold)), we process further -- this makes it a canditate, not a hot pixel.float other-- this will hold the value of the neighbour we currently checkTESTONE(-2); (left)
TESTONE(-widthx2); (above)
TESTONE(+2); (right)
TESTONE(+widthx2); (below)
other), we count++, and potentially updatemaxinif the new value is larger than the ones seen previously*inis sufficiently brighter than its neighbours), we set the pixel to the max. neighbour we found.d->markfixed = p->markfixed && (!(pipe->type & (DT_DEV_PIXELPIPE_EXPORT | DT_DEV_PIXELPIPE_THUMBNAIL)));in commit_params (the export and the thumbnail are not affected).