Commit 8a1bff38 authored by Lucy McNeill's avatar Lucy McNeill
Browse files

add library(EBImage) to the R script for converting a single image into three channel images

parent d2e7b655
......@@ -69,7 +69,7 @@ And now we can save
```
To do this for a whole folder, where in this example all images end in "RGB.jpeg", use this loop instead:
To do this for a whole folder, where in this example all images end in "-RGB.jpeg", use this loop instead:
```{r, eval = FALSE}
library(EBImage)
# location of the jpeg/png/tiff files to convert into three channel jpeg/png/tiff
......
......@@ -206,7 +206,7 @@ display(image_3channel)</code></pre>
g = channel(image_3channel,&quot;g&quot;)
b = channel(image_3channel,&quot;b&quot;)</code></pre>
<p>And now we can save</p>
<p>To do this for a whole folder, where in this example all images end in “RGB.jpeg”, use this loop instead:</p>
<p>To do this for a whole folder, where in this example all images end in “-RGB.jpeg”, use this loop instead:</p>
<pre class="r"><code>library(EBImage)
# location of the jpeg/png/tiff files to convert into three channel jpeg/png/tiff
path = &#39;data-folder/from-sharepoint/OneDrive_1_01-06-2021&#39;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment