Real-time Magnifying Glass: An Interactive Animation Example

A real-time mouse-following magnifying glass of several different shapes
732 descargas
Actualizado 3 mar 2012

Ver licencia

This program demonstrates how to implement a not-so-simple real time magnifying glass.

How to use:
-----------
just type:

magnifier

or

magnifier(mask, FPS)

where
mask is the shape of the magnifying glass which takes one of the following values:

"circle" - unsmoothed circular window
"aacircle" - smoothed circular window (default)
"gaussian" - guassian window
other string value - rectangular window

FPS defines how many time the position of the magnifying glass should be updated per second. By default, its value is 20.

---

The picture used in this program was taken from the A-li comic book series drawn by Xu Han (aka "Hans").

The Chinese text on the top left corner reads:
"On the Friday morning, A-li (roughly equivalent to 'foxy' in English) hung himself on the clothes rope, in an attempt to pull his ears longer...

-It was said that he fell in love with the rabbit."
---

Citar como

Mingjing Zhang (2024). Real-time Magnifying Glass: An Interactive Animation Example (https://www.mathworks.com/matlabcentral/fileexchange/35441-real-time-magnifying-glass-an-interactive-animation-example), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2011a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0