ijtiff
has the fourth dimension of an ijtiff_img as its time dimension.
However, some linescan images (images where a single line of pixels is
acquired over and over) have the time dimension as the y dimension, (to avoid
the need for an image stack). These functions allow one to convert this type
of image into a conventional ijtiff_img (with time in the fourth dimension)
and to convert back.
linescan_to_stack(linescan_img) stack_to_linescan(img)
linescan_img | A 4-dimensional array in which the time axis is the first
axis. Dimension 4 must be 1 i.e. |
---|---|
img | A conventional ijtiff_img, to be turned into a linescan image.
Dimension 1 must be 1 i.e. |
The converted image, an object of class ijtiff_img.
#>#>#> [,1] [,2] [,3] [,4] #> [1,] 1 2 3 4 #> [2,] 1 2 3 4 #> [3,] 1 2 3 4 #> [4,] 1 2 3 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>#>#> [1] 1 2 3 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────#>#>#> [,1] [,2] [,3] [,4] #> [1,] 1 2 3 4 #> [2,] 1 2 3 4 #> [3,] 1 2 3 4 #> [4,] 1 2 3 4 #> ── TIFF tags ───────────────────────────────────────────────────────────────────