Tile Detail
get_tile_file_names(tile_directory, file_base, n_tiles, n_channels=0)
Gets array of all tile file paths which will be saved in tile directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tile_directory |
str
|
Path to folder where tiles npy files saved. |
required |
file_base |
List[str]
|
|
required |
n_tiles |
int
|
Number of tiles in data set. |
required |
n_channels |
int
|
Total number of imaging channels if using 3D.
|
0
|
Returns:
Type | Description |
---|---|
np.ndarray
|
|
np.ndarray
|
|
np.ndarray
|
|
np.ndarray
|
|
np.ndarray
|
tile |
Source code in coppafish/setup/tile_details.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
get_tile_name(tile_directory, file_base, r, t, c=None)
Finds the full path to tile, t
, of particular round, r
, and channel, c
, in tile_directory
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tile_directory |
str
|
Path to folder where tiles npy files saved. |
required |
file_base |
List[str]
|
|
required |
r |
int
|
Round of desired npy image. |
required |
t |
int
|
Tile of desired npy image. |
required |
c |
Optional[int]
|
Channel of desired npy image. |
None
|
Returns:
Type | Description |
---|---|
str
|
Full path of tile npy file. |
Source code in coppafish/setup/tile_details.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
get_tilepos(xy_pos, tile_sz)
Using xy_pos
from nd2 metadata, this obtains the yx position of each tile.
I.e. how tiles are arranged with respect to each other.
Note that this is indexed differently in nd2 file and npy files in the tile directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
xy_pos |
np.ndarray
|
|
required |
tile_sz |
int
|
xy dimension of tile in pixels. |
required |
Returns:
Type | Description |
---|---|
np.ndarray
|
|
np.ndarray
|
|
Source code in coppafish/setup/tile_details.py
6 7 8 9 10 11 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 |
|