Skip to content
Snippets Groups Projects
Commit 7f8be6fb authored by Lucia D. Hradecka's avatar Lucia D. Hradecka
Browse files

generate docs and update README.md

parent 8b89a482
No related branches found
No related tags found
6 merge requests!71.2,!6merge all changes to 1.2.0,!5Make v1.1.0 default,!4Make v1.1.0 default,!2v1.1.0 update,!1Make v1.1.0 default
Showing
with 16 additions and 15644 deletions
# Bio-Volumentations # Bio-Volumentations
Image augmentation and preprocessing package for 3D, 4D, and 5D biomedical images. `Bio-Volumentations` is an image augmentation and preprocessing package for 3D, 4D, and 5D biomedical images.
It offers a range of image transformations implemented efficiently for time-lapse multi-channel volumetric image data.
This includes both preprocessing transformations (such as intensity normalisation, padding, and type casting)
and augmentation transformations (such as affine transform, noise addition and removal, and contrast manipulation).
The `Bio-Volumentations` library is a suitable tool for data manipulation in machine learning applications.
Importantly, it can be used with any major Python deep learning library.
This library builds upon wide-spread libraries such as Albumentations (see the Contributions section below)
in terms of design and user interface. Therefore, it can easily be adopted by users.
# Installation # Installation
Install the package from pip using Install the package from PyPi using
```python ```python
pip install bio-volumentations pip install bio-volumentations
``` ```
...@@ -56,10 +65,10 @@ Below, there are several examples of how to use this library. ...@@ -56,10 +65,10 @@ Below, there are several examples of how to use this library.
### Example: Transforming a Single Image ### Example: Transforming a Single Image
```python ```python
# Create the transformation using Compose from a list of transformations
import numpy as np import numpy as np
from bio_volumentations import Compose, RandomGamma, RandomRotate90, GaussianBlur from bio_volumentations import Compose, RandomGamma, RandomRotate90, GaussianBlur
# Create the transformation using Compose from a list of transformations
aug = Compose([ aug = Compose([
RandomGamma(gamma_limit = (0.8, 1,2), p = 0.8), RandomGamma(gamma_limit = (0.8, 1,2), p = 0.8),
RandomRotate90(axes = [1, 2, 3], p = 1), RandomRotate90(axes = [1, 2, 3], p = 1),
...@@ -97,7 +106,7 @@ as stand-alone targets (see below). ...@@ -97,7 +106,7 @@ as stand-alone targets (see below).
If a `Random...` transform receives multiple targets on its input in a single call, If a `Random...` transform receives multiple targets on its input in a single call,
the same random numbers are used to transform all of these targets. the same random numbers are used to transform all of these targets.
however, some transformations might behave slightly differently for the individual However, some transformations might behave slightly differently for the individual
target types. For example, `RandomCrop` works in the same way for all target types, while target types. For example, `RandomCrop` works in the same way for all target types, while
`RandomGaussianNoise` only affects the `image` target and leaves the `mask` and `RandomGaussianNoise` only affects the `image` target and leaves the `mask` and
`float_mask` targets unchanged. Please consult the documentation of respective transforms `float_mask` targets unchanged. Please consult the documentation of respective transforms
...@@ -229,7 +238,7 @@ We would thus like to thank their authors, namely: ...@@ -229,7 +238,7 @@ We would thus like to thank their authors, namely:
# Citation # Citation
TODO TBA
# ============================================================================================= #
# Author: Pavel Iakubovskii, ZFTurbo, ashawkey, Dominik Müller, #
# Samuel Šuľan, Lucia Hradecká, Filip Lux #
# Copyright: albumentations: : https://github.com/albumentations-team #
# Pavel Iakubovskii : https://github.com/qubvel #
# ZFTurbo : https://github.com/ZFTurbo #
# ashawkey : https://github.com/ashawkey #
# Dominik Müller : https://github.com/muellerdo #
# Lucia Hradecká : lucia.d.hradecka@gmail.com #
# Filip Lux : lux.filip@gmail.com #
# #
# Volumentations History: #
# - Original: https://github.com/albumentations-team/albumentations #
# - 3D Conversion: https://github.com/ashawkey/volumentations #
# - Continued Development: https://github.com/ZFTurbo/volumentations #
# - Enhancements: https://github.com/qubvel/volumentations #
# - Further Enhancements: https://github.com/muellerdo/volumentations #
# - Biomedical Enhancements: https://gitlab.fi.muni.cz/cbia/bio-volumentations #
# #
# MIT License. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in all #
# copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
# SOFTWARE. #
# ============================================================================================= #
from .bio_volumentations.augmentations.transforms import *
from .bio_volumentations.conversion.transforms import *
from .bio_volumentations.core.composition import *
from .bio_volumentations.core.transforms_interface import *
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
# from the environment for the first two. # from the environment for the first two.
SPHINXOPTS ?= SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build SPHINXBUILD ?= sphinx-build
SOURCEDIR = . SOURCEDIR = source
BUILDDIR = _build BUILDDIR = build
# Put it first so that "make" without argument is like "make help". # Put it first so that "make" without argument is like "make help".
help: help:
......
File deleted
File deleted
Source diff could not be displayed: it is too large. Options to address this: view the blob.
.. volumentations_biomedicine documentation master file, created by
sphinx-quickstart on Fri Sep 22 13:30:00 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Text pred modulami.
Text je *reStructuredText*. Zoznam možností čo sa dá s týmto formátom robiť sa nachádza na: tejto
`stránke <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_
Welcome to volumentations_biomedicine's documentation!
======================================================
.. toctree::
:maxdepth: 3
:titlesonly:
:caption: Contents:
Augumentations <volumentations_biomedicine.augmentations>
Conversions <volumentations_biomedicine.conversion>
Composition <volumentations_biomedicine.composition>
Transforms interface <volumentations_biomedicine.transforms_interface>
Text po moduloch.
volumentations\_biomedicine.augmentations.transforms module
-----------------------------------------------------------
.. automodule:: volumentations_biomedicine.augmentations.transforms
:members:
:undoc-members:
:show-inheritance:
This diff is collapsed.
This diff is collapsed.
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
// Underscore.js 1.13.1
// https://underscorejs.org
// (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
var n="1.13.1",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,e=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,o=t.push,i=t.slice,a=e.toString,f=e.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof DataView,s=Array.isArray,p=Object.keys,v=Object.create,h=c&&ArrayBuffer.isView,y=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=Math.pow(2,53)-1;function j(n,r){return r=null==r?n.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),u=0;u<t;u++)e[u]=arguments[u+r];switch(r){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}var o=Array(r+1);for(u=0;u<r;u++)o[u]=arguments[u];return o[r]=e,n.apply(this,o)}}function _(n){var r=typeof n;return"function"===r||"object"===r&&!!n}function w(n){return void 0===n}function A(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function x(n){var r="[object "+n+"]";return function(n){return a.call(n)===r}}var S=x("String"),O=x("Number"),M=x("Date"),E=x("RegExp"),B=x("Error"),N=x("Symbol"),I=x("ArrayBuffer"),T=x("Function"),k=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof k&&(T=function(n){return"function"==typeof n||!1});var D=T,R=x("Object"),F=l&&R(new DataView(new ArrayBuffer(8))),V="undefined"!=typeof Map&&R(new Map),P=x("DataView");var q=F?function(n){return null!=n&&D(n.getInt8)&&I(n.buffer)}:P,U=s||x("Array");function W(n,r){return null!=n&&f.call(n,r)}var z=x("Arguments");!function(){z(arguments)||(z=function(n){return W(n,"callee")})}();var L=z;function $(n){return O(n)&&y(n)}function C(n){return function(){return n}}function K(n){return function(r){var t=n(r);return"number"==typeof t&&t>=0&&t<=m}}function J(n){return function(r){return null==r?void 0:r[n]}}var G=J("byteLength"),H=K(G),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(n){return h?h(n)&&!q(n):H(n)&&Q.test(a.call(n))}:C(!1),Y=J("length");function Z(n,r){r=function(n){for(var r={},t=n.length,e=0;e<t;++e)r[n[e]]=!0;return{contains:function(n){return r[n]},push:function(t){return r[t]=!0,n.push(t)}}}(r);var t=b.length,u=n.constructor,o=D(u)&&u.prototype||e,i="constructor";for(W(n,i)&&!r.contains(i)&&r.push(i);t--;)(i=b[t])in n&&n[i]!==o[i]&&!r.contains(i)&&r.push(i)}function nn(n){if(!_(n))return[];if(p)return p(n);var r=[];for(var t in n)W(n,t)&&r.push(t);return g&&Z(n,r),r}function rn(n,r){var t=nn(r),e=t.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=t[o];if(r[i]!==u[i]||!(i in u))return!1}return!0}function tn(n){return n instanceof tn?n:this instanceof tn?void(this._wrapped=n):new tn(n)}function en(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,G(n))}tn.VERSION=n,tn.prototype.value=function(){return this._wrapped},tn.prototype.valueOf=tn.prototype.toJSON=tn.prototype.value,tn.prototype.toString=function(){return String(this._wrapped)};var un="[object DataView]";function on(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(null==n||null==r)return!1;if(n!=n)return r!=r;var o=typeof n;return("function"===o||"object"===o||"object"==typeof r)&&function n(r,t,e,o){r instanceof tn&&(r=r._wrapped);t instanceof tn&&(t=t._wrapped);var i=a.call(r);if(i!==a.call(t))return!1;if(F&&"[object Object]"==i&&q(r)){if(!q(t))return!1;i=un}switch(i){case"[object RegExp]":case"[object String]":return""+r==""+t;case"[object Number]":return+r!=+r?+t!=+t:0==+r?1/+r==1/t:+r==+t;case"[object Date]":case"[object Boolean]":return+r==+t;case"[object Symbol]":return u.valueOf.call(r)===u.valueOf.call(t);case"[object ArrayBuffer]":case un:return n(en(r),en(t),e,o)}var f="[object Array]"===i;if(!f&&X(r)){if(G(r)!==G(t))return!1;if(r.buffer===t.buffer&&r.byteOffset===t.byteOffset)return!0;f=!0}if(!f){if("object"!=typeof r||"object"!=typeof t)return!1;var c=r.constructor,l=t.constructor;if(c!==l&&!(D(c)&&c instanceof c&&D(l)&&l instanceof l)&&"constructor"in r&&"constructor"in t)return!1}o=o||[];var s=(e=e||[]).length;for(;s--;)if(e[s]===r)return o[s]===t;if(e.push(r),o.push(t),f){if((s=r.length)!==t.length)return!1;for(;s--;)if(!on(r[s],t[s],e,o))return!1}else{var p,v=nn(r);if(s=v.length,nn(t).length!==s)return!1;for(;s--;)if(p=v[s],!W(t,p)||!on(r[p],t[p],e,o))return!1}return e.pop(),o.pop(),!0}(n,r,t,e)}function an(n){if(!_(n))return[];var r=[];for(var t in n)r.push(t);return g&&Z(n,r),r}function fn(n){var r=Y(n);return function(t){if(null==t)return!1;var e=an(t);if(Y(e))return!1;for(var u=0;u<r;u++)if(!D(t[n[u]]))return!1;return n!==hn||!D(t[cn])}}var cn="forEach",ln="has",sn=["clear","delete"],pn=["get",ln,"set"],vn=sn.concat(cn,pn),hn=sn.concat(pn),yn=["add"].concat(sn,cn,ln),dn=V?fn(vn):x("Map"),gn=V?fn(hn):x("WeakMap"),bn=V?fn(yn):x("Set"),mn=x("WeakSet");function jn(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function _n(n){for(var r={},t=nn(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function wn(n){var r=[];for(var t in n)D(n[t])&&r.push(t);return r.sort()}function An(n,r){return function(t){var e=arguments.length;if(r&&(t=Object(t)),e<2||null==t)return t;for(var u=1;u<e;u++)for(var o=arguments[u],i=n(o),a=i.length,f=0;f<a;f++){var c=i[f];r&&void 0!==t[c]||(t[c]=o[c])}return t}}var xn=An(an),Sn=An(nn),On=An(an,!0);function Mn(n){if(!_(n))return{};if(v)return v(n);var r=function(){};r.prototype=n;var t=new r;return r.prototype=null,t}function En(n){return _(n)?U(n)?n.slice():xn({},n):n}function Bn(n){return U(n)?n:[n]}function Nn(n){return tn.toPath(n)}function In(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function Tn(n,r,t){var e=In(n,Nn(r));return w(e)?t:e}function kn(n){return n}function Dn(n){return n=Sn({},n),function(r){return rn(r,n)}}function Rn(n){return n=Nn(n),function(r){return In(r,n)}}function Fn(n,r,t){if(void 0===r)return n;switch(null==t?3:t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)}}return function(){return n.apply(r,arguments)}}function Vn(n,r,t){return null==n?kn:D(n)?Fn(n,r,t):_(n)&&!U(n)?Dn(n):Rn(n)}function Pn(n,r){return Vn(n,r,1/0)}function qn(n,r,t){return tn.iteratee!==Pn?tn.iteratee(n,r):Vn(n,r,t)}function Un(){}function Wn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}tn.toPath=Bn,tn.iteratee=Pn;var zn=Date.now||function(){return(new Date).getTime()};function Ln(n){var r=function(r){return n[r]},t="(?:"+nn(n).join("|")+")",e=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var $n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Cn=Ln($n),Kn=Ln(_n($n)),Jn=tn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Gn=/(.)^/,Hn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Qn=/\\|'|\r|\n|\u2028|\u2029/g;function Xn(n){return"\\"+Hn[n]}var Yn=/^\s*(\w|\$)+\s*$/;var Zn=0;function nr(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);var o=Mn(n.prototype),i=n.apply(o,u);return _(i)?i:o}var rr=j((function(n,r){var t=rr.placeholder,e=function(){for(var u=0,o=r.length,i=Array(o),a=0;a<o;a++)i[a]=r[a]===t?arguments[u++]:r[a];for(;u<arguments.length;)i.push(arguments[u++]);return nr(n,e,this,this,i)};return e}));rr.placeholder=tn;var tr=j((function(n,r,t){if(!D(n))throw new TypeError("Bind must be called on a function");var e=j((function(u){return nr(n,e,r,this,t.concat(u))}));return e})),er=K(Y);function ur(n,r,t,e){if(e=e||[],r||0===r){if(r<=0)return e.concat(n)}else r=1/0;for(var u=e.length,o=0,i=Y(n);o<i;o++){var a=n[o];if(er(a)&&(U(a)||L(a)))if(r>1)ur(a,r-1,t,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else t||(e[u++]=a)}return e}var or=j((function(n,r){var t=(r=ur(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=tr(n[e],n)}return n}));var ir=j((function(n,r,t){return setTimeout((function(){return n.apply(null,t)}),r)})),ar=rr(ir,tn,1);function fr(n){return function(){return!n.apply(this,arguments)}}function cr(n,r){var t;return function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var lr=rr(cr,2);function sr(n,r,t){r=qn(r,t);for(var e,u=nn(n),o=0,i=u.length;o<i;o++)if(r(n[e=u[o]],e,n))return e}function pr(n){return function(r,t,e){t=qn(t,e);for(var u=Y(r),o=n>0?0:u-1;o>=0&&o<u;o+=n)if(t(r[o],o,r))return o;return-1}}var vr=pr(1),hr=pr(-1);function yr(n,r,t,e){for(var u=(t=qn(t,e,1))(r),o=0,i=Y(n);o<i;){var a=Math.floor((o+i)/2);t(n[a])<u?o=a+1:i=a}return o}function dr(n,r,t){return function(e,u,o){var a=0,f=Y(e);if("number"==typeof o)n>0?a=o>=0?o:Math.max(o+f,a):f=o>=0?Math.min(o+1,f):o+f+1;else if(t&&o&&f)return e[o=t(e,u)]===u?o:-1;if(u!=u)return(o=r(i.call(e,a,f),$))>=0?o+a:-1;for(o=n>0?a:f-1;o>=0&&o<f;o+=n)if(e[o]===u)return o;return-1}}var gr=dr(1,vr,yr),br=dr(-1,hr);function mr(n,r,t){var e=(er(n)?vr:sr)(n,r,t);if(void 0!==e&&-1!==e)return n[e]}function jr(n,r,t){var e,u;if(r=Fn(r,t),er(n))for(e=0,u=n.length;e<u;e++)r(n[e],e,n);else{var o=nn(n);for(e=0,u=o.length;e<u;e++)r(n[o[e]],o[e],n)}return n}function _r(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=r(n[a],a,n)}return o}function wr(n){var r=function(r,t,e,u){var o=!er(r)&&nn(r),i=(o||r).length,a=n>0?0:i-1;for(u||(e=r[o?o[a]:a],a+=n);a>=0&&a<i;a+=n){var f=o?o[a]:a;e=t(e,r[f],f,r)}return e};return function(n,t,e,u){var o=arguments.length>=3;return r(n,Fn(t,u,4),e,o)}}var Ar=wr(1),xr=wr(-1);function Sr(n,r,t){var e=[];return r=qn(r,t),jr(n,(function(n,t,u){r(n,t,u)&&e.push(n)})),e}function Or(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!r(n[i],i,n))return!1}return!0}function Mr(n,r,t){r=qn(r,t);for(var e=!er(n)&&nn(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(r(n[i],i,n))return!0}return!1}function Er(n,r,t,e){return er(n)||(n=jn(n)),("number"!=typeof t||e)&&(t=0),gr(n,r,t)>=0}var Br=j((function(n,r,t){var e,u;return D(r)?u=r:(r=Nn(r),e=r.slice(0,-1),r=r[r.length-1]),_r(n,(function(n){var o=u;if(!o){if(e&&e.length&&(n=In(n,e)),null==n)return;o=n[r]}return null==o?o:o.apply(n,t)}))}));function Nr(n,r){return _r(n,Rn(r))}function Ir(n,r,t){var e,u,o=-1/0,i=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e>o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))>i||u===-1/0&&o===-1/0)&&(o=n,i=u)}));return o}function Tr(n,r,t){if(null==r||t)return er(n)||(n=jn(n)),n[Wn(n.length-1)];var e=er(n)?En(n):jn(n),u=Y(e);r=Math.max(Math.min(r,u),0);for(var o=u-1,i=0;i<r;i++){var a=Wn(i,o),f=e[i];e[i]=e[a],e[a]=f}return e.slice(0,r)}function kr(n,r){return function(t,e,u){var o=r?[[],[]]:{};return e=qn(e,u),jr(t,(function(r,u){var i=e(r,u,t);n(o,r,i)})),o}}var Dr=kr((function(n,r,t){W(n,t)?n[t].push(r):n[t]=[r]})),Rr=kr((function(n,r,t){n[t]=r})),Fr=kr((function(n,r,t){W(n,t)?n[t]++:n[t]=1})),Vr=kr((function(n,r,t){n[t?0:1].push(r)}),!0),Pr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function qr(n,r,t){return r in t}var Ur=j((function(n,r){var t={},e=r[0];if(null==n)return t;D(e)?(r.length>1&&(e=Fn(e,r[1])),r=an(n)):(e=qr,r=ur(r,!1,!1),n=Object(n));for(var u=0,o=r.length;u<o;u++){var i=r[u],a=n[i];e(a,i,n)&&(t[i]=a)}return t})),Wr=j((function(n,r){var t,e=r[0];return D(e)?(e=fr(e),r.length>1&&(t=r[1])):(r=_r(ur(r,!1,!1),String),e=function(n,t){return!Er(r,t)}),Ur(n,e,t)}));function zr(n,r,t){return i.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function Lr(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:zr(n,n.length-r)}function $r(n,r,t){return i.call(n,null==r||t?1:r)}var Cr=j((function(n,r){return r=ur(r,!0,!0),Sr(n,(function(n){return!Er(r,n)}))})),Kr=j((function(n,r){return Cr(n,r)}));function Jr(n,r,t,e){A(r)||(e=t,t=r,r=!1),null!=t&&(t=qn(t,e));for(var u=[],o=[],i=0,a=Y(n);i<a;i++){var f=n[i],c=t?t(f,i,n):f;r&&!t?(i&&o===c||u.push(f),o=c):t?Er(o,c)||(o.push(c),u.push(f)):Er(u,f)||u.push(f)}return u}var Gr=j((function(n){return Jr(ur(n,!0,!0))}));function Hr(n){for(var r=n&&Ir(n,Y).length||0,t=Array(r),e=0;e<r;e++)t[e]=Nr(n,e);return t}var Qr=j(Hr);function Xr(n,r){return n._chain?tn(r).chain():r}function Yr(n){return jr(wn(n),(function(r){var t=tn[r]=n[r];tn.prototype[r]=function(){var n=[this._wrapped];return o.apply(n,arguments),Xr(this,t.apply(tn,n))}})),tn}jr(["pop","push","reverse","shift","sort","splice","unshift"],(function(n){var r=t[n];tn.prototype[n]=function(){var t=this._wrapped;return null!=t&&(r.apply(t,arguments),"shift"!==n&&"splice"!==n||0!==t.length||delete t[0]),Xr(this,t)}})),jr(["concat","join","slice"],(function(n){var r=t[n];tn.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=r.apply(n,arguments)),Xr(this,n)}}));var Zr=Yr({__proto__:null,VERSION:n,restArguments:j,isObject:_,isNull:function(n){return null===n},isUndefined:w,isBoolean:A,isElement:function(n){return!(!n||1!==n.nodeType)},isString:S,isNumber:O,isDate:M,isRegExp:E,isError:B,isSymbol:N,isArrayBuffer:I,isDataView:q,isArray:U,isFunction:D,isArguments:L,isFinite:function(n){return!N(n)&&d(n)&&!isNaN(parseFloat(n))},isNaN:$,isTypedArray:X,isEmpty:function(n){if(null==n)return!0;var r=Y(n);return"number"==typeof r&&(U(n)||S(n)||L(n))?0===r:0===Y(nn(n))},isMatch:rn,isEqual:function(n,r){return on(n,r)},isMap:dn,isWeakMap:gn,isSet:bn,isWeakSet:mn,keys:nn,allKeys:an,values:jn,pairs:function(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:_n,functions:wn,methods:wn,extend:xn,extendOwn:Sn,assign:Sn,defaults:On,create:function(n,r){var t=Mn(n);return r&&Sn(t,r),t},clone:En,tap:function(n,r){return r(n),n},get:Tn,has:function(n,r){for(var t=(r=Nn(r)).length,e=0;e<t;e++){var u=r[e];if(!W(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=qn(r,t);for(var e=nn(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=r(n[a],a,n)}return o},identity:kn,constant:C,noop:Un,toPath:Bn,property:Rn,propertyOf:function(n){return null==n?Un:function(r){return Tn(n,r)}},matcher:Dn,matches:Dn,times:function(n,r,t){var e=Array(Math.max(0,n));r=Fn(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:Wn,now:zn,escape:Cn,unescape:Kn,templateSettings:Jn,template:function(n,r,t){!r&&t&&(r=t),r=On({},r,tn.templateSettings);var e=RegExp([(r.escape||Gn).source,(r.interpolate||Gn).source,(r.evaluate||Gn).source].join("|")+"|$","g"),u=0,o="__p+='";n.replace(e,(function(r,t,e,i,a){return o+=n.slice(u,a).replace(Qn,Xn),u=a+r.length,t?o+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?o+="'+\n((__t=("+e+"))==null?'':__t)+\n'":i&&(o+="';\n"+i+"\n__p+='"),r})),o+="';\n";var i,a=r.variable;if(a){if(!Yn.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{i=new Function(a,"_",o)}catch(n){throw n.source=o,n}var f=function(n){return i.call(this,n,tn)};return f.source="function("+a+"){\n"+o+"}",f},result:function(n,r,t){var e=(r=Nn(r)).length;if(!e)return D(t)?t.call(n):t;for(var u=0;u<e;u++){var o=null==n?void 0:n[r[u]];void 0===o&&(o=t,u=e),n=D(o)?o.call(n):o}return n},uniqueId:function(n){var r=++Zn+"";return n?n+r:r},chain:function(n){var r=tn(n);return r._chain=!0,r},iteratee:Pn,partial:rr,bind:tr,bindAll:or,memoize:function(n,r){var t=function(e){var u=t.cache,o=""+(r?r.apply(this,arguments):e);return W(u,o)||(u[o]=n.apply(this,arguments)),u[o]};return t.cache={},t},delay:ir,defer:ar,throttle:function(n,r,t){var e,u,o,i,a=0;t||(t={});var f=function(){a=!1===t.leading?0:zn(),e=null,i=n.apply(u,o),e||(u=o=null)},c=function(){var c=zn();a||!1!==t.leading||(a=c);var l=r-(c-a);return u=this,o=arguments,l<=0||l>r?(e&&(clearTimeout(e),e=null),a=c,i=n.apply(u,o),e||(u=o=null)):e||!1===t.trailing||(e=setTimeout(f,l)),i};return c.cancel=function(){clearTimeout(e),a=0,e=u=o=null},c},debounce:function(n,r,t){var e,u,o,i,a,f=function(){var c=zn()-u;r>c?e=setTimeout(f,r-c):(e=null,t||(i=n.apply(a,o)),e||(o=a=null))},c=j((function(c){return a=this,o=c,u=zn(),e||(e=setTimeout(f,r),t&&(i=n.apply(a,o))),i}));return c.cancel=function(){clearTimeout(e),e=o=a=null},c},wrap:function(n,r){return rr(r,n)},negate:fr,compose:function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:cr,once:lr,findKey:sr,findIndex:vr,findLastIndex:hr,sortedIndex:yr,indexOf:gr,lastIndexOf:br,find:mr,detect:mr,findWhere:function(n,r){return mr(n,Dn(r))},each:jr,forEach:jr,map:_r,collect:_r,reduce:Ar,foldl:Ar,inject:Ar,reduceRight:xr,foldr:xr,filter:Sr,select:Sr,reject:function(n,r,t){return Sr(n,fr(qn(r)),t)},every:Or,all:Or,some:Mr,any:Mr,contains:Er,includes:Er,include:Er,invoke:Br,pluck:Nr,where:function(n,r){return Sr(n,Dn(r))},max:Ir,min:function(n,r,t){var e,u,o=1/0,i=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=er(n)?n:jn(n)).length;a<f;a++)null!=(e=n[a])&&e<o&&(o=e);else r=qn(r,t),jr(n,(function(n,t,e){((u=r(n,t,e))<i||u===1/0&&o===1/0)&&(o=n,i=u)}));return o},shuffle:function(n){return Tr(n,1/0)},sample:Tr,sortBy:function(n,r,t){var e=0;return r=qn(r,t),Nr(_r(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index})),"value")},groupBy:Dr,indexBy:Rr,countBy:Fr,partition:Vr,toArray:function(n){return n?U(n)?i.call(n):S(n)?n.match(Pr):er(n)?_r(n,kn):jn(n):[]},size:function(n){return null==n?0:er(n)?n.length:nn(n).length},pick:Ur,omit:Wr,first:Lr,head:Lr,take:Lr,initial:zr,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:$r(n,Math.max(0,n.length-r))},rest:$r,tail:$r,drop:$r,compact:function(n){return Sr(n,Boolean)},flatten:function(n,r){return ur(n,r,!1)},without:Kr,uniq:Jr,unique:Jr,union:Gr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=Y(n);e<u;e++){var o=n[e];if(!Er(r,o)){var i;for(i=1;i<t&&Er(arguments[i],o);i++);i===t&&r.push(o)}}return r},difference:Cr,unzip:Hr,transpose:Hr,zip:Qr,object:function(n,r){for(var t={},e=0,u=Y(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t||(t=r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),o=0;o<e;o++,n+=t)u[o]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(i.call(n,e,e+=r));return t},mixin:Yr,default:tn});return Zr._=Zr,Zr}));
\ No newline at end of file
This diff is collapsed.
docs/_build/html/logo.png

42.5 KiB

File deleted
Search.setIndex({"docnames": ["index", "volumentations_biomedicine.augmentations"], "filenames": ["index.rst", "volumentations_biomedicine.augmentations.rst"], "titles": ["Welcome to volumentations_biomedicine\u2019s documentation!", "volumentations_biomedicine.augmentations.transforms module"], "terms": {"text": 0, "pred": 0, "modulami": 0, "je": 0, "restructuredtext": 0, "zoznam": 0, "mo\u017enost\u00ed": 0, "\u010do": 0, "sa": 0, "d\u00e1": 0, "t\u00fdmto": 0, "form\u00e1tom": 0, "robi\u0165": 0, "nach\u00e1dza": 0, "na": 0, "tejto": 0, "str\u00e1nke": 0, "augument": 0, "po": 0, "moduloch": 0, "class": 1, "affinetransform": 1, "angle_limit": 1, "list": 1, "union": 1, "tupl": 1, "float": 1, "15": 1, "translantion_limit": 1, "option": 1, "int": 1, "none": 1, "scaling_coef": 1, "scale_back": 1, "bool": 1, "true": 1, "interpol": 1, "1": 1, "border_mod": 1, "str": 1, "reflect": 1, "ival": 1, "0": 1, "mval": 1, "ignore_index": 1, "always_appli": 1, "fals": 1, "p": 1, "5": 1, "sourc": 1, "base": 1, "dualtransform": 1, "rotat": 1, "around": 1, "spatial": 1, "ax": 1, "each": 1, "axi": 1, "chosen": 1, "randomli": 1, "from": 1, "given": 1, "interv": 1, "If": 1, "x": 1, "instead": 1, "becom": 1, "us": 1, "should": 1, "length": 1, "equal": 1, "3": 1, "For": 1, "closer": 1, "clook": 1, "take": 1, "look": 1, "scipi": 1, "ndimag": 1, "affine_transform": 1, "paramet": 1, "contain": 1, "degre": 1, "which": 1, "angl": 1, "correspond": 1, "default": 1, "number": 1, "minu": 1, "channel": 1, "element": 1, "control": 1, "translat": 1, "thi": 1, "consist": 1, "vector": 1, "scale": 1, "coeffici": 1, "make": 1, "imag": 1, "data": 1, "isotrop": 1, "dimens": 1, "need": 1, "onli": 1, "ar": 1, "set": 1, "scall": 1, "recommend": 1, "anisotrop": 1, "one": 1, "have": 1, "significantli": 1, "lower": 1, "amount": 1, "sampl": 1, "back": 1, "The": 1, "order": 1, "spline": 1, "mode": 1, "determin": 1, "how": 1, "input": 1, "arrai": 1, "extend": 1, "beyond": 1, "its": 1, "boundari": 1, "constant": 1, "valu": 1, "fill": 1, "past": 1, "edg": 1, "mask": 1, "done": 1, "doe": 1, "noth": 1, "alwai": 1, "appli": 1, "composit": 1, "chanc": 1, "target": 1, "type": 1, "float32": 1, "img": 1, "y": 1, "z": 1, "apply_to_mask": 1, "get_param": 1, "share": 1, "usual": 1, "random": 1, "centercrop": 1, "shape": 1, "sequenc": 1, "crop": 1, "center": 1, "region": 1, "size": 1, "unlik": 1, "albument": 1, "pad": 1, "where": 1, "smaller": 1, "than": 1, "numpi": 1, "http": 1, "org": 1, "doc": 1, "stabl": 1, "refer": 1, "gener": 1, "html": 1, "final": 1, "expect": 1, "without": 1, "first": 1, "repres": 1, "border": 1, "linear_ramp": 1, "contigu": 1, "elastictransform": 1, "deformation_limit": 1, "25": 1, "mask_valu": 1, "sigma": 1, "alpha": 1, "random_st": 1, "flip": 1, "2": 1, "specifi": 1, "gaussianblur": 1, "8": 1, "cval": 1, "imageonlytransform": 1, "perform": 1, "gaussian": 1, "blur": 1, "strength": 1, "There": 1, "between": 1, "By": 1, "also": 1, "time": 1, "singl": 1, "same": 1, "effect": 1, "over": 1, "differ": 1, "accord": 1, "insid": 1, "more": 1, "inform": 1, "about": 1, "check": 1, "gaussian_filt": 1, "must": 1, "param": 1, "gaussiannois": 1, "var_limit": 1, "001": 1, "mean": 1, "add": 1, "nois": 1, "drawn": 1, "normal": 1, "distribut": 1, "varianc": 1, "gauss": 1, "griddropout": 1, "ratio": 1, "unit_size_min": 1, "unit_size_max": 1, "holes_number_x": 1, "holes_number_i": 1, "holes_number_z": 1, "shift_x": 1, "shift_i": 1, "shift_z": 1, "random_offset": 1, "fill_valu": 1, "mask_fill_valu": 1, "hole": 1, "get_transform_init_args_nam": 1, "histogramequ": 1, "bin": 1, "256": 1, "histogram": 1, "wise": 1, "separ": 1, "both": 1, "tempor": 1, "domain": 1, "togeth": 1, "output": 1, "rang": 1, "scikit": 1, "api": 1, "skimag": 1, "exposur": 1, "equalize_hist": 1, "std": 1, "desir": 1, "respect": 1, "normalizemeanstd": 1, "formula": 1, "previou": 1, "pad_siz": 1, "all": 1, "side": 1, "ha": 1, "behaviour": 1, "except": 1, "pixel": 1, "item": 1, "defin": 1, "either": 1, "wai": 1, "describ": 1, "abov": 1, "shorter": 1, "remain": 1, "other": 1, "randombrightnesscontrast": 1, "brightness_limit": 1, "contrast_limit": 1, "chang": 1, "bright": 1, "contrast": 1, "f": 1, "c": 1, "b": 1, "taken": 1, "limit": 1, "won": 1, "t": 1, "beta": 1, "randomcrop": 1, "crop_start": 1, "randomdropplan": 1, "plane_drop_prob": 1, "drop": 1, "some": 1, "plane": 1, "probabl": 1, "uint8": 1, "index": 1, "randomflip": 1, "axes_to_choos": 1, "combin": 1, "choos": 1, "subset": 1, "randomgamma": 1, "gamma_limit": 1, "gamma": 1, "select": 1, "skip": 1, "20": 1, "randomgaussianblur": 1, "max_sigma": 1, "start_of_interv": 1, "behav": 1, "similarli": 1, "format": 1, "creat": 1, "sigma_numb": 1, "end": 1, "start": 1, "randomrotate90": 1, "shuffle_axi": 1, "90": 1, "180": 1, "270": 1, "being": 1, "exampl": 1, "afterward": 1, "ignor": 1, "do": 1, "uniqu": 1, "rotation_around": 1, "factor": 1, "randomscal": 1, "scale_limit": 1, "9": 1, "rescal": 1, "under": 1, "hood": 1, "zoom": 1, "less": 1, "last": 1, "point": 1, "outsid": 1, "when": 1, "resiz": 1, "anti_aliasing_downsampl": 1, "function": 1, "unchang": 1, "argument": 1, "copi": 1, "string": 1, "filter": 1, "befor": 1, "downsampl": 1, "scale_factor": 1, "addit": 1}, "objects": {"volumentations_biomedicine.augmentations": [[1, 0, 0, "-", "transforms"]], "volumentations_biomedicine.augmentations.transforms": [[1, 1, 1, "", "AffineTransform"], [1, 1, 1, "", "CenterCrop"], [1, 1, 1, "", "Contiguous"], [1, 1, 1, "", "ElasticTransform"], [1, 1, 1, "", "Flip"], [1, 1, 1, "", "Float"], [1, 1, 1, "", "GaussianBlur"], [1, 1, 1, "", "GaussianNoise"], [1, 1, 1, "", "GridDropout"], [1, 1, 1, "", "HistogramEqualization"], [1, 1, 1, "", "Normalize"], [1, 1, 1, "", "NormalizeMeanStd"], [1, 1, 1, "", "Pad"], [1, 1, 1, "", "RandomBrightnessContrast"], [1, 1, 1, "", "RandomCrop"], [1, 1, 1, "", "RandomDropPlane"], [1, 1, 1, "", "RandomFlip"], [1, 1, 1, "", "RandomGamma"], [1, 1, 1, "", "RandomGaussianBlur"], [1, 1, 1, "", "RandomRotate90"], [1, 1, 1, "", "RandomScale"], [1, 1, 1, "", "Resize"], [1, 1, 1, "", "Scale"]], "volumentations_biomedicine.augmentations.transforms.AffineTransform": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.CenterCrop": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"]], "volumentations_biomedicine.augmentations.transforms.Contiguous": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.ElasticTransform": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.Flip": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.Float": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.GaussianBlur": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.GaussianNoise": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.GridDropout": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"], [1, 2, 1, "", "get_transform_init_args_names"]], "volumentations_biomedicine.augmentations.transforms.HistogramEqualization": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.Normalize": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.NormalizeMeanStd": [[1, 2, 1, "", "apply"]], "volumentations_biomedicine.augmentations.transforms.Pad": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"]], "volumentations_biomedicine.augmentations.transforms.RandomBrightnessContrast": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "get_params"], [1, 2, 1, "", "get_transform_init_args_names"]], "volumentations_biomedicine.augmentations.transforms.RandomCrop": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.RandomDropPlane": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.RandomFlip": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.RandomGamma": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "get_params"], [1, 2, 1, "", "get_transform_init_args_names"]], "volumentations_biomedicine.augmentations.transforms.RandomGaussianBlur": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.RandomRotate90": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.RandomScale": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"], [1, 2, 1, "", "get_params"]], "volumentations_biomedicine.augmentations.transforms.Resize": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"]], "volumentations_biomedicine.augmentations.transforms.Scale": [[1, 2, 1, "", "apply"], [1, 2, 1, "", "apply_to_mask"]]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:method"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "method", "Python method"]}, "titleterms": {"welcom": 0, "volumentations_biomedicin": [0, 1], "s": 0, "document": 0, "content": 0, "augment": 1, "transform": 1, "modul": 1}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 6, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 56}})
\ No newline at end of file
This diff is collapsed.
File added
File added
File added
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment