Skip to content

Commit

Permalink
Fixed c order Zarr images not opening correctly. Updated Linux version.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHazard committed Dec 16, 2022
1 parent 3ce59b3 commit d93cf1e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified PRZC/libpReadZarrC.so
Binary file not shown.
3 changes: 2 additions & 1 deletion PRZC/parallelReadZarr.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ void* readZarrParallelHelper(const char* folderName, uint64_t startX, uint64_t s
void* zarr = malloc(dim[0]*dim[1]*dim[2]*(bits/8));
parallelReadZarr(zarr,folderName,startX,startY,startZ,endX,endY,endZ,chunkXSize,chunkYSize,chunkZSize,shapeX,shapeY,shapeZ,bits,order,cname);
// May need to add a check for if the data is f order or c order for ImageJ
if(imageJIm && (order == 'F' || order == 'f')){
// For the c order images I have tested, we also have to do this flip for now
if(imageJIm /*&& (order == 'F' || order == 'f')*/){
void* zarrC = malloc(dim[0]*dim[1]*dim[2]*(bits/8));
#pragma omp parallel for
for(uint64_t k = 0; k < dim[2]; k++){
Expand Down
Binary file modified linux/Parallel_Fiji_Visualizer_lib/libpReadZarrC.so
Binary file not shown.

0 comments on commit d93cf1e

Please sign in to comment.