1D Image Visualization

Here you have an impartial and simple tool to see the real intensity of an image and avoid optical illusions.

This is just a simple tool that shows the intensity of a line of the image graphically. The intensity values between the black horizontal lines are represented in the top blue graphic. Its derivative is shown below in green (press key 'g' to show it).

The derivative represents the slope of the intensity. The peaks of the derivative (local maximums and minimums) correspond to the points of maximum slope, which in the case of the image correspond to the edges. Then, to find the exact location of an edge in the image you have to look at the peaks in the green graph. Higher positive peaks correspond to transitions from black to white and negative peaks correspond to transitions from white to black.

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Usage:

  • Move the mouse right and left to rotate
  • Move the mouse up and down to move the image
  • Press keys 'i' and 'u' to change the image
  • Press key 'f' to show/hide the intensity plot (blue)
  • Press key 'g' to show/hide the derivative plot (green)
  • Press 'Esc' to stop the applet (and reload the page to start again)

If you don't have the Java plugin, you can watch a video of it.

With this tool you can know the real intensity of the pixels and avoid some optical illusions:

Cornsweet illusion: in this image the region at right seems lighter than the left one. If you put a finger to hide the central edge, you will see that both sides have the same intensity. With the applet you can see the real values of the intensity: Cornsweet illusion

Simultaneous contrast illusion: the surrounding or background brightness affects the way we perceive the color or intensities of the objects. The central rectangle in the following example is flat, but it seems that has a gradient because the background affects the way we see it: Gradient illusion

Same_color_illusion: This also is related to the Color_constancy, we automatically remove the shadows and illumination of the objects in such a way that the colors remain constant. In the following example, this effect makes it difficult to see that in fact the A and B squares have exactly the same value of intensity: Gray square illusion

The same effect is common in many real world images. In the following example the background on the left (which we see as white) is darker than the letters in the center (which we see as black): Text

Most Barcode readers use the same approach as the applet above: instead of analyzing all the image, they analyze only a line each time. The process is repeated with different angles until one line crosses all the bars of the barcode and it is read correctly: Barcode

As you can see when analyzing natural images, finding edges using this tool is not always easy, specially with images with lots of texture: Baboon

In these cases, it may be useful to filter the image with some filter (center-surround or edge detector) like the ones in the Integral Images demo, to reduce noise, enhance the features of interest or remove the global gradient of the background.

It is also possible to achieve subpixel accuracy in the location of the edges by approximating each peak of the derivative to a parabola and search for its vertex. This is useful in machine vision gauging (measuring distances accurately).

Comments

Enter your comment
If you can't read the letters on the image, download this .wav file to get them read to you.
 
 
Back to top
1d_image_visualization.txt · Last modified: 2021/08/05 14:14 (external edit)
 
 
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0