Ejemplo n.º 1
0
 public void ConvertTo(ref CoreDll.adDefectOptions defectOptions)
 {
     defectOptions.checkOnDefect                = checkOnDefect ? CoreDll.TRUE : CoreDll.FALSE;
     defectOptions.checkOnBlockiness            = checkOnBlockiness ? CoreDll.TRUE : CoreDll.FALSE;
     defectOptions.blockinessThreshold          = blockinessThreshold;
     defectOptions.checkOnBlockinessOnlyNotJpeg = checkOnBlockinessOnlyNotJpeg ? CoreDll.TRUE : CoreDll.FALSE;
     defectOptions.checkOnBlurring              = checkOnBlurring ? CoreDll.TRUE : CoreDll.FALSE;
     defectOptions.blurringThreshold            = blurringThreshold;
 }
Ejemplo n.º 2
0
 public CoreDefectOptions(ref CoreDll.adDefectOptions defectOptions)
 {
     checkOnDefect                = defectOptions.checkOnDefect != CoreDll.FALSE;
     checkOnBlockiness            = defectOptions.checkOnBlockiness != CoreDll.FALSE;
     blockinessThreshold          = defectOptions.blockinessThreshold;
     checkOnBlockinessOnlyNotJpeg = defectOptions.checkOnBlockinessOnlyNotJpeg != CoreDll.FALSE;
     checkOnBlurring              = defectOptions.checkOnBlurring != CoreDll.FALSE;
     blurringThreshold            = defectOptions.blurringThreshold;
 }