Extract tiles from tiled TIFF and store in numpy array
问题 My overall goal is to crop several regions from an input mirax (.mrxs) slide image to JPEG output files. Here is what one of these images looks like: Note that the darker grey area is part of the image, and the regions I ultimately wish to extract in JPEG format are the 3 black square regions. Now, for the specifics: I'm able to extract the color channels from the mirax image into 3 separate TIFF files using vips on the command line: vips extract_band INPUT.mrxs OUTPUT.tiff[tile,compression