Commit d2e7b655 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 86beff15
......@@ -71,6 +71,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:
```{r, eval = FALSE}
library(EBImage)
# location of the jpeg/png/tiff files to convert into three channel jpeg/png/tiff
path = 'data-folder/from-sharepoint/OneDrive_1_01-06-2021'
file_list <- list.files(path)
......
......@@ -207,7 +207,8 @@ 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>
<pre class="r"><code># location of the jpeg/png/tiff files to convert into three channel jpeg/png/tiff
<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;
file_list &lt;- list.files(path)
print(file_list)
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