convert out.tif -define tiff:tile-geometry=256x256 -depth 8 ptif:out8.tif
convert out.tif -define tiff:tile-geometry=256x256 -depth 16 ptif:out16.tif
LD_LIBRARY_PATH=OpenCV/opencv/build/lib PYTHONPATH=OpenCV/opencv/build/lib python -c "import cv2;a=cv2.imread('out.tif');cv2.imwrite('out.bmp',a)"
LD_LIBRARY_PATH=OpenCV/opencv/build/lib PYTHONPATH=OpenCV/opencv/build/lib python -c "import cv2;a=cv2.imread('out8.tif');cv2.imwrite('out8.bmp',a)"
LD_LIBRARY_PATH=OpenCV/opencv/build/lib PYTHONPATH=OpenCV/opencv/build/lib python -c "import cv2;a=cv2.imread('out16.tif');cv2.imwrite('out16.bmp',a)"
LD_LIBRARY_PATH=OpenCV/opencv/build/lib PYTHONPATH=OpenCV/opencv/build/lib python -c "import cv2;print cv2.__version__"

