ndv.data #
Sample data for testing and examples.
Functions:
-
astronaut
–Load RGB data
(512, 512, 3)
, uint8. -
cat
–Load RGB cat data
(300, 451, 3)
, uint8. -
cells3d
–Load cells3d from scikit-image
(60, 2, 256, 256)
uint16. -
cosem_dataset
–Load a dataset from the COSEM/OpenOrganelle project.
-
nd_sine_wave
–5D dataset:
(10, 3, 5, 512, 512)
, float64.
astronaut #
astronaut() -> ndarray
Load RGB data (512, 512, 3)
, uint8.
Requires imageio to be installed.
Source code in ndv/data.py
85 86 87 88 89 90 |
|
cat #
cat() -> ndarray
Load RGB cat data (300, 451, 3)
, uint8.
Requires imageio to be installed.
Source code in ndv/data.py
77 78 79 80 81 82 |
|
cells3d #
cells3d() -> ndarray
Load cells3d from scikit-image (60, 2, 256, 256)
uint16.
Requires imageio and tifffile
to be installed.
Source code in ndv/data.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
cosem_dataset #
cosem_dataset(
uri: str = "",
dataset: str = "jrc_hela-3",
label: str = "er-mem_pred",
level: int = 4,
) -> Any
Load a dataset from the COSEM/OpenOrganelle project.
Search for available options at: https://openorganelle.janelia.org/datasets
Requires tensorstore to be installed.
Parameters:
-
uri
#str
, default:''
) –The URI of the dataset to load. If not provided, the default URI is
f"{dataset}/{dataset}.n5/labels/{label}/s{level}/"
. -
dataset
#str
, default:'jrc_hela-3'
) –The name of the dataset to load. Default is "jrc_hela-3".
-
label
#str
, default:'er-mem_pred'
) –The label to load. Default is "er-mem_pred".
-
level
#int
, default:4
) –The pyramid level to load. Default is 4.
Source code in ndv/data.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
nd_sine_wave #
nd_sine_wave(
shape: tuple[int, int, int, int, int] = (
10,
3,
5,
512,
512,
),
amplitude: float = 240,
base_frequency: float = 5,
) -> ndarray
5D dataset: (10, 3, 5, 512, 512)
, float64.
Source code in ndv/data.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|