[Java] Deblur PSF and Wiener - all black result

FYI, I turned WITH_JPEG and WITH_PNG off and BUILD_JPEG and BUILD_PNG on and rebuilt. Now the code doesn’t load either jpeg or png files!

Other samples like porting_anisotropic_image_segmentation_gapi.cpp that load a jpeg and BasicLinearTransformsTrackbar also fail. The former with the same

ERROR : Image cannot be loaded…!!

and the latter with

what(): OpenCV(4.5.1-pre) /home/ultan/git/opencv_4.5.0_pre/modules/highgui/src/window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow’

Aborted (core dumped)