yumetodo / SigContrastFastAviUtl

Sigmoidal/Logit contrast Aviutl plugin. IM is not used.
MIT License
2 stars 0 forks source link

use Intel TBB to reuse created thread #23

Open yumetodo opened 7 years ago

yumetodo commented 7 years ago

The cost of creating/destroying thread is expensive. To pool and reuse created thread, we should use Intel TBB instead of using std::thread

yumetodo commented 7 years ago

decontrast

Y mode

with TBB current
image size 960x720 960x720
convert mode Y Y
midtone 50 50
strength 5 5
N 1,861 2,314
max 2,735,922 33,015,951
min 403,169 1,986,473
avg 518,912.0918861 2,614,866.3962835
stdev 194,652.8996141 1,064,698.0157407
se 4,512.1932440 22,133.2284868
95%CI 8,843.7363193 43,380.3310380
95%CI.max 527,755.8282054 2,658,246.7273215
95%CI.min 510,068.3555668 2,571,486.0652455

RGB mode

with TBB current
image size 960x720 960x720
convert mode RGB RGB
midtone 50 50
strength 5 5
N 2,490 2,101
max 17,504,768 36,662,095
min 6,103,186 7,983,920
avg 6,586,649.7883534 10,152,671.9019515
stdev 567,898.1502624 3,225,259.8054170
se 11,380.7473070 70,364.1876361
95%CI 22,305.8550148 137,911.2746559
95%CI.max 6,608,955.6433682 10,290,583.1766074
95%CI.min 6,564,343.9333386 10,014,760.6272955