applyConvolution in Z direction: two steps
comment unused functions