Skip to content

Instantly share code, notes, and snippets.

@ochilab
Last active June 13, 2019 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochilab/3a0c09555140a4b8653ddc1cbed2b2f5 to your computer and use it in GitHub Desktop.
Save ochilab/3a0c09555140a4b8653ddc1cbed2b2f5 to your computer and use it in GitHub Desktop.
OpenCVでMultipageTiffを読む
ref, images=cv2.imreadmulti('sample.tif',flags=0) #flags 0:Gray, 1:RGB, -1:RGBA
for mm in images:
cv2.imshow("tif",mm)
cv2.waitKey(0)
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment