If you are using OpenCV 2 or OpenCV 3 you should use IMREAD_* flags (as mentioned at here).
C++
using namespace cv;
Mat image = imread("image.png", IMREAD_UNCHANGED);
Python
import cv2
im = cv2.imread("image.png", cv2.IMREAD_UNCHANGED)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…