get points output similar to ImageData but only for 2D slice
get points output similar to ImageData but only for 2D slice