Skip to content

routines used for (de)archiving tif files used for mouselight project.

Notifications You must be signed in to change notification settings

MouseLightProject/compression

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compression

Converts tif to motion-jpeg-2000 (mj2) with a given compression rate. production version is compression/matlab/tif2mj.m

Arguments:

  • varargout = tif2mj(input_base,output_base,compression_lvl,delete_file,maxThreads)
  • input_base: input folder where tif files reside
  • output_base: mj2 output folder
  • compression_lvl: factor of downsampling, e.g. 10(default) will result in 1/10 of the original file size
  • delete_file: deletes the original file (default: '0')
  • maxThreads: number of threads used for compression (default: '1'). use large number of threads(make sure it is less than actual cores) for faster conversion or use single thread ('1') for memory efficient cluster deployment.

Sample Usage:

tif2mj('./data/', './test/','5','0')

Pipeline Usage:

There is a sample pipe named: "Compression Example", same logic as other pipes. Compression arguments can be passed in "Tasks":

About

routines used for (de)archiving tif files used for mouselight project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%