Skip to content

Commit 32a7095

Browse files
committed
Update README.md
1 parent c5d8aeb commit 32a7095

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VapourSynth-Retinex
22

3-
Retinex.dll 2014 mawen1250
3+
Retinex.dll | 2014 | mawen1250
44

55
VapourSynth plugin
66

@@ -34,29 +34,29 @@ This function accept 8-16bit integer Gray/YUV/RGB/YCoCg input. Sub-sampled forma
3434
retinex.MSRCP(clip input, float[] sigmaS=[25,80,250], float lower_thr=0, float upper_thr=0, bool fulls, bool fulld=fulls)
3535
```
3636

37-
- input:
37+
- input:<br />
3838
clip to process
3939

40-
- sigma: (Default: [25,80,250])
40+
- sigma: (Default: [25,80,250])<br />
4141
sigma of Gaussian function to apply Gaussian filtering.<br />
4242
Assign an array of multiple sigma to apply MSR.<br />
4343
It is recommended by most researches to use 3 different scales (balance between speed and quality).
4444

45-
- lower_thr: (Default: 0)
45+
- lower_thr: (Default: 0)<br />
4646
After applying MSR, a normalization is applied to the value range [Floor,Ceil] of the image.<br />
4747
This parameter define the ratio of pixel number to determine the Floor of value range. 0 means using the minimum pixel value in the image.<br />
4848
Valid range is [0,1), and the sum of lower_thr and upper_thr should be less than 1.
4949

50-
- upper_thr: (Default: 0)
50+
- upper_thr: (Default: 0)<br />
5151
After applying MSR, a normalization is applied to the value range [Floor,Ceil] of the image.<br />
5252
This parameter define the ratio of pixel number to determine the Ceil of value range. 0 means using the maximum pixel value in the image.<br />
5353
Valid range is [0,1), and the sum of lower_thr and upper_thr should be less than 1.<br />
5454
Increase it if there are some extreme bright parts in the output image which makes the whole image too dark.
5555

56-
- fulls: (Default: True for RGB/YCoCg input, False for YUV/Gray input)
56+
- fulls: (Default: True for RGB/YCoCg input, False for YUV/Gray input)<br />
5757
Determine the value range of input clip. True means full range/PC range, and False means limited range/TV range.
5858

59-
- fulld: (Default: fulls)
59+
- fulld: (Default: fulls)<br />
6060
Determine the value range of output clip. True means full range/PC range, and False means limited range/TV range.<br />
6161
Set different value for fulls and fulld will result in range conversion.<br />
6262
When fulls and fulld are the same, it is safe to assign either True or False for any kinds of input clip except YUV. When fulls=False it will automatically determine the Floor and Ceil of input image, which may produce a stronger filter result under some circumstances.

source/MSR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int Retinex_MSR(FLType *odata, const FLType *idata, const MSRData &d, int height
6060
{
6161
i = stride * j;
6262
for (upper = i + width; i < upper; i++)
63-
odata[i] = std::log(odata[i]) / static_cast<FLType>(scount);
63+
odata[i] = log(odata[i]) / static_cast<FLType>(scount);
6464
}
6565

6666
vs_aligned_free(gauss);

0 commit comments

Comments
 (0)