parte i. introducción a imagej operaciones sobre...

37

Upload: others

Post on 20-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB
Page 2: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Parte I. Introducción a ImageJ Parte II – Operaciones sobre píxeles Parte III - Filtros

Page 3: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Parte I. Introducción a ImageJ Parte II – Operaciones sobre píxeles Parte III - Filtros

Page 4: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

http://rsb.info.nih.gov/ij

Page 5: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Resources ImageJ Web Site http://rsb.info.nih.gov/ij Tutorial http://rsb.info.nih.gov/ij/docs/guide/index.html

Page 6: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Of these, we’ll concentrate on:

˃ Image

˃ Process

˃ Analyze

˃ Plugins

˃ Help

Page 7: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Image Menu

Page 8: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Process Menu

Page 9: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Analyze Menu

Page 10: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Plugins Menu

Page 11: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Help Menu

Page 12: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Parte I. Introducción a ImageJ Parte II – Operaciones sobre píxeles Parte III - Filtros

Page 13: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Part II – Operaciones sobre píxeles The histogram Brightness Contrast RGB color

Page 14: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB color

Page 15: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

The Image Histogram

Log Scale

The histogram shows the number of pixels of each value, regardless of location. The log display allows for the visualization of minor components.

Page 16: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

In this case, the log display indicates that virtually all pixel values are used, even though they are a small percentage of the total.

Page 17: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB color

Page 18: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Brightness/contrast

Page 19: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Brightness Adjustment

The brightness adjustment essentially adds or subtracts a constant to every pixel, causing a shift in the histogram along the x axis, but no change in the distribution

Page 20: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB color

Page 21: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Contrast Enhancement

For contrast enhancement, a lower value, in this case, 88, is set at zero, and a higher value, 166, is set at 255. The values of each of the pixels are adjusted proportionately. Note that because of the integer values, not all of the pixel values are used.

Page 22: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Contrast Enhancement

Saturated pixels determines the number of pixels in the image that are allowed to become

saturated. Increasing this value increases contrast.

Normalize and ImageJ will recalculate the pixel values of the image so the range is equal to

the maximum range for the data type

Page 23: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB color

Page 24: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

A way to treat color is to assign a set of 3 values, for Red, Green and Blue to each pixel. For common color images, each of the three colors

is represented as an 8-bit value.

One can think of a color image as consisting of three planes, one for each of the primary colors

Page 25: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

As we move the cursor over different parts of the image, the color values appear in the status bar of the program.

A color histogram is available, In the Analyze>Histogram>RGB

Page 26: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Conversion to grey scale

Since many operations will work only on grey scale images, it is necessary to consider how the conversions from color images can be accomplished.

There are two approaches, dependent on the type of image.

The simplest is to select the image, go to Image>type, and select 8-bit, or 16 or 32 bit.

Page 27: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

However, some images, such as fluorescence micrographs taken as RGB images, can yield surprises.

The reason that the image is so dark is that the routine averages the three channels (rgb) to generate the image. Since there is no data in g or b, the values for the red channel are divided by 3, yielding a dark image.

Page 28: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

We can overcome this by separating the three channels and discarding those with no data.

Page 29: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Color Merge Many fluorescence images are taken in single channel images which are often

merged to generate a single overlapped image.

Some cameras generate rgb images even of single color fluorescence In that case, the images have to be converted to 8-bit before processing.

Page 30: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Parte I. Introducción a ImageJ Parte II – Operaciones sobre píxeles Parte III - Filtros

Page 31: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Tutorial correspondiente a filtros en ImageJ:

http://rsb.info.nih.gov/ij/docs/guide/146-29.html#toc-Subsection-29.11

Page 32: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Suavizado Filtro Gaussiano

Page 33: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Suavizado Filtro Media

Page 34: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Suavizado Filtro Mediana (apropiado para ruido del tipo sal y pimienta)

Page 35: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Filtros mínimo y máximo

Page 36: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Filtros personalizados

Page 37: Parte I. Introducción a ImageJ Operaciones sobre píxelespersonal.us.es/majiro/2014_24_10_clase3.pdf · Part II – Operaciones sobre pixeles The histogram Brightness Contrast RGB

Recursos usados para la elaboración de estas diapositivas:

» ImageJ, A Useful Tool for Image Processing and Analysis Joel B. Sheffield, Temple University.

http://rsbweb.nih.gov/ij/docs/examples/IJ-M&M08.ppt

» MRI ImageJ Workshop. Exercises 4 with solutions

http://dev.mri.cnrs.fr/wiki/imagej-workshop