Skip to content

Commit f01ae2b

Browse files
Fix RJ-2025-030 figure 7 caption
1 parent 57e7068 commit f01ae2b

File tree

7 files changed

+54
-28
lines changed

7 files changed

+54
-28
lines changed

_articles/RJ-2025-030/Applications.Rmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Subsequently, a distinct labeling ID is assigned to each microbead, as
379379
illustrated by a color gradient. Moreover, the contours of each individual
380380
object are displayed (Figure \@ref(fig:FIELD2)). The results of the segmentation
381381
and the extraction of shape-related information are presented in the interactive
382-
`leaflet` interface (Figure \@ref(fig:leafletPDF)). Presenting information like
382+
`leaflet` interface (Figure \@ref(`r if (knitr::is_latex_output()) "fig:leafletPDF" else "fig:leafletHTML"`)). Presenting information like
383383
cluster ID, size, perimeter and width of the detected objects.
384384

385385
(ref:FIELD1) **Displaying the original, background, and foreground Images**: The original image (left) shows the fluorescent microbeads. The middle image displays the background in white (TRUE) and all objects detected by segmentation in black (FALSE). The right image shows only the foreground (microbeads) after detection through segmentation using the `fieldMASK()` function.
@@ -477,6 +477,15 @@ if (knitr::is_latex_output()) {
477477
}
478478
```
479479

480+
(ref:leafletHTML) **Displaying Results with an Interactive `leaflet` Tool**: The tool displays the original image on the left. For comparison, the cursor is mirrored to the corresponding image (only visible in HTML format). The left image provides detailed information interactively. Hovering over the objects reveals their labeling ID. Performing a left-click opens a detailed window providing information for the individual object, such as area, perimeter, width, and shape. The packages `FIELDimageR.Extra`, `mapview`, and `leafsync` are used to create the interactive display.
481+
482+
```{r leafletHTML, echo=FALSE, out.width="1%", fig.cap="(ref:leafletHTML)"}
483+
if (!knitr::is_latex_output()) {
484+
knitr::include_graphics("figures/empty.png")
485+
}
486+
```
487+
488+
480489
In summary, packages such as `EBImage` and `biopixR` provide direct pipelines
481490
for the extraction of features from images, including shape, size, radius, and
482491
perimeter, as well as texture information through the calculation of Haralick

_articles/RJ-2025-030/RJ-2025-030.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ if (knitr::is_latex_output()) {
303303
}
304304

305305

306+
## ----leafletHTML, echo=FALSE, out.width="1%", fig.cap="(ref:leafletHTML)"-----
307+
if (!knitr::is_latex_output()) {
308+
knitr::include_graphics("figures/empty.png")
309+
}
310+
311+
306312
## ----SOM, eval=FALSE, echo=TRUE-----------------------------------------------
307313
# # Load the 'biopixR' package
308314
# library(biopixR)

_articles/RJ-2025-030/RJ-2025-030.html

Lines changed: 35 additions & 26 deletions
Large diffs are not rendered by default.
14 Bytes
Binary file not shown.

_articles/RJ-2025-030/RJ-2025-030.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ \subsection{\texorpdfstring{\texttt{FIELDimageR}: an \texttt{R} package for the
584584
\caption{\textbf{Displaying Results with an Interactive \texttt{leaflet} Tool}: The tool displays the original image on the left. For comparison, the cursor is mirrored to the corresponding image (only visible in HTML format). The left image provides detailed information interactively. Hovering over the objects reveals their labeling ID. Performing a left-click opens a detailed window providing information for the individual object, such as area, perimeter, width, and shape. The packages \texttt{FIELDimageR.Extra}, \texttt{mapview}, and \texttt{leafsync} are used to create the interactive display.}\label{fig:leafletPDF}
585585
\end{figure}
586586

587+
588+
587589
In summary, packages such as \texttt{EBImage} and \texttt{biopixR} provide direct pipelines
588590
for the extraction of features from images, including shape, size, radius, and
589591
perimeter, as well as texture information through the calculation of Haralick
@@ -1833,7 +1835,7 @@ \section{Conclusion}\label{conclusion}
18331835
by \texttt{magick}.
18341836

18351837
\begin{longtable}[]{@{}lccccc@{}}
1836-
\caption{\label{tab:unnamed-chunk-75}Supported File Formats by Main Image Processing Packages}\tabularnewline
1838+
\caption{\label{tab:unnamed-chunk-76}Supported File Formats by Main Image Processing Packages}\tabularnewline
18371839
\toprule\noalign{}
18381840
& \texttt{imager} & \texttt{magick} & \texttt{EBImage} & \texttt{OpenImageR} & \texttt{SimpleITK} \\
18391841
\midrule\noalign{}
Binary file not shown.
204 Bytes
Loading

0 commit comments

Comments
 (0)