forked from PrincetonUniversity/BrainPipe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flip_cm.py
23 lines (16 loc) · 1.02 KB
/
flip_cm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: ejdennis
"""
import os, sys, glob, shutil
import tifffile as tif
import numpy as np
#listofdownsized = glob.glob('/jukebox/LightSheetData/lightserv/pbibawi/pb_udisco/*/imaging_request_1/rawdata/*/*downsized_for_atlas.tif')
listofdownsized = ["/jukebox/LightSheetData/lightserv/pbibawi/pb_udisco_647_488/pb_udisco_647_488_E156/imaging_request_1/rawdata/resolution_3.6x/cell__downsized_for_atlas.tif",
"/jukebox/LightSheetData/lightserv/pbibawi/pb_udisco_647_488/pb_udisco_647_488_E156/imaging_request_1/rawdata/resolution_3.6x/reg__downsized_for_atlas.tif",
"/jukebox/LightSheetData/lightserv/pbibawi/pb_udisco_647_488/pb_udisco_647_488_M128/imaging_request_1/rawdata/resolution_3.6x/cell__downsized_for_atlas.tif",
"/jukebox/LightSheetData/lightserv/pbibawi/pb_udisco_647_488/pb_udisco_647_488_M128/imaging_request_1/rawdata/resolution_3.6x/reg__downsized_for_atlas.tif"]
for filepath in listofdownsized:
print(filepath)
tif.imsave(filepath,np.fliplr(tif.imread(filepath)))