Watch this Author's files
I think there is a bug in loadpcd.m. When you save and then reload an organized point cloud, visualization of the z component doesn't come out right.
The fix that I found was to switch height and width in line 248 of loadpcd.m. Corrected line:
points = permute( reshape( shiftdim(points, 1), width, height, ), [2 1 3]);
I've been searching around for a bit but I can't find the max pooling layer code. Can someone point me in the right direction?