Change kernelMinSize to 2

Change roiSize initialization as 
Size roiSize = randomSize(ksize.width, MAX_VALUE, ksize.height, MAX_VALUE);