Skip to content

Commit

Permalink
Change shape of tiff image
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisSch authored Mar 19, 2020
1 parent f0e5c69 commit 4f6b4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SingleCellDataExtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def PrepareData(mask,image,channel_names):
image_loaded = skimage.io.imread(image,plugin='tifffile')
#print('TIF(F) found')
# Remove extra axis
image_loaded = image_loaded.reshape((image_loaded.shape[0],image_loaded.shape[3],image_loaded.shape[4]))
image_loaded = image_loaded.reshape((image_loaded.shape[1],image_loaded.shape[3],image_loaded.shape[4]))

#Check to see if image is hdf5
elif image_path.suffix == '.h5' or image_path.suffix == '.hdf5':
Expand Down Expand Up @@ -183,4 +183,4 @@ def MultiExtractSingleCells(mask,image,channel_names,output):

im_full_name = os.path.basename(image)
im_name = im_full_name.split('.')[0]
print("Finished "+str(im_name))
print("Finished "+str(im_name))

0 comments on commit 4f6b4d9

Please sign in to comment.