Skip to content

TissueImageAnalytics/TIAMultiProc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TIA MultiProc

Multiprocessing class decorator to upgrade a single core & single file function to multi-core multi-file function. Specifically, designed for the tiatoolbox

Please try

>>> from tiamultiproc.multiproc import TIAMultiProcess
>>> import cv2
>>> @TIAMultiProcess(iter_on="input_path")
... def read_images(input_path, output_dir=None):
...    img = cv2.imread(input_path)
...    return img
>>> imgs = read_images(input_path, workers=2)

imgs will be a list of numpy arrays containing the input images.

License

The source code TIAMultiProc as hosted on GitHub is released under the GNU General Public License (Version 3).

The full text of the licence is included in LICENSE.md.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages