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; }
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; }