Added assert in applyMatrixFilter3x3()