This experiment demonstrates how you can build a simple grayscale filter and apply it to an image data source. The Execute R module is used to perform the image conversion and to display the image through an R Device output port.
The Execute R module is not only powerful for data manipulation and building models but also for displaying plots and images through a graphics device. In this experiment I read in Bill Gates' image, which is available in AzureML Studio, and convert it to grayscale using a simple R script that averages the RGB values of the pixels and replaces them with the mean values. I also use another R script to display the original and transformed images through the Execute R module's 'R Device' output port. Created by a Microsoft Employee