Forum

Bug: HowTo Count All Pixels that are not Black.vl

2020.1.0.011

The node CountNonZero is pink

Error: cn == 1
   at OpenCvSharp.NativeMethods.<>c.<.cctor>b__1628_0(ErrorCode status, String funcName, String errMsg, String fileName, Int32 line, IntPtr userdata) in C:\projects\opencvsharp\src\OpenCvSharp\PInvoke\NativeMethods.cs:line 219
   at OpenCvSharp.NativeMethods.core_countNonZero(IntPtr src)
   at OpenCvSharp.Cv2.CountNonZero(InputArray mtx) in C:\projects\opencvsharp\src\OpenCvSharp\Cv2\Cv2_core.cs:line 836
   at _VL_OpenCV_.OpenCV.Utils.CountNonZero_OmotqpnrrGrO5U6uUsrOT8.Update(CvImage Input_In, Boolean Enabled_In, Int32& Result_Out)
   at _HowTo_Count_All_Pixels_that_are_not_Black_.Main.HowTo_Count_All_Pixels_that_are_not_BlackApplication_HXoNXef0BrIMMn5ltg9Im1.<Update>g____TRACE__|3_0(<>c__DisplayClass3_0& ) in C:\Program Files\VVVV\vvvv_gamma_2020.1.0-0011-gf364e3a421\lib\packs\VL.OpenCV.0.2.142-alpha\help\Utils\HowTo Count All Pixels that are not Black.vl.cs:line 280
   at _HowTo_Count_All_Pixels_that_are_not_Black_.Main.HowTo_Count_All_Pixels_that_are_not_BlackApplication_HXoNXef0BrIMMn5ltg9Im1.Update() in C:\Program Files\VVVV\vvvv_gamma_2020.1.0-0011-gf364e3a421\lib\packs\VL.OpenCV.0.2.142-alpha\help\Utils\HowTo Count All Pixels that are not Black.vl.cs:line 219
   at _HowTo_Count_All_Pixels_that_are_not_Black_.Main.HowTo_Count_All_Pixels_that_are_not_BlackApplication_HXoNXef0BrIMMn5ltg9Im1.__RunHowTo_Count_All_Pixels_that_are_not_BlackApplication(HowTo_Count_All_Pixels_that_are_not_BlackApplication_HXoNXef0BrIMMn5ltg9Im1 Input_In) in C:\Program Files\VVVV\vvvv_gamma_2020.1.0-0011-gf364e3a421\lib\packs\VL.OpenCV.0.2.142-alpha\help\Utils\HowTo Count All Pixels that are not Black.vl.cs:line 329

thanks for pointing this out. seem it is only the filename to the image in the patch that is set wrong. if you choose an image manually it should work. please confirm.

I confirm it works with other images!