Image recogizition and classification is an interesting and a newly evolving area of data mining. Preprocessing is an initial step in every data mining activity. In this use case, I explore the EBI image library developed by bioconductor and perform a few general steps associated with image processing, that includes exploring the image’s parameters and adjusting image features such as brightness, contrasts, etc.

Sample Image

Exploring image parameters

## Image 
##   colorMode    : Color 
##   storage.mode : double 
##   dim          : 665 1022 4 
##   frames.total : 4 
##   frames.render: 1 
## 
## imageData(object)[1:5,1:6,1]
##           [,1] [,2]       [,3]       [,4]       [,5]       [,6]
## [1,] 0.3647059    0 0.09411765 0.07450980 0.10588235 0.06666667
## [2,] 0.2823529    0 0.11372549 0.05490196 0.07058824 0.05882353
## [3,] 0.2274510    0 0.15686275 0.07058824 0.01176471 0.03529412
## [4,] 0.2627451    0 0.14509804 0.09411765 0.07450980 0.09019608
## [5,] 0.2549020    0 0.09803922 0.05490196 0.09019608 0.09411765

Adjusting Image Brightness

Increasing Image Brightness (Lightening Image)

Decreasing Image Brightness (Darkening Image)

Adjusting Image Contrasts

Reducing image contrast

Image image contrast

Adjusting Gamma Factor

Reducing Gamma Factor

Increasing Gamma Factor

Adjusting Image Color

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

Fliping, flopping, rotating & resizing of image

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

Low Pass Filter

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.

High Pass Filter

## Only the first frame of the image stack is displayed.
## To display all frames use 'all = TRUE'.