Procesamiento basado en ROI
Una región de interés (ROI) es una parte de una imagen que se desea filtrar o procesar de alguna manera. Una ROI se puede representar como máscara binaria. En la máscara, los píxeles que pertenecen a la ROI tienen el valor 1
, y los que se sitúan fuera tienen el valor 0
. La toolbox ofrece varias opciones para especificar una ROI y crear máscaras binarias.
La toolbox es compatible con distintos objetos que pueden usarse para crear ROI de distintas formas, como círculos, elipses, polígonos, rectángulos y formas trazadas a mano alzada. Después de crear los objetos, puede cambiar su forma, posición, apariencia y comportamiento. Para obtener más información sobre las formas que se pueden usar para definir una ROI, consulte Crear formas para definir ROI.
Funciones
Temas
Especificar ROI
- Specify ROI as Binary Mask
You can create a binary mask by selecting pixels based on intensity values or position, or by using binary segmentation techniques. - Crear formas para definir ROI
Los objetos de ROI representan las ROI como formas geométricas y trazadas a mano. - Crear una máscara binaria utilizando una función ROI
En este ejemplo se muestra cómo crear una máscara binaria usando una de las funciones de creación de ROI, tales comodrawcircle
, con la función de creación de máscarascreateMask
. - Classify Pixels That Are Partially Enclosed by ROI
Learn how many Image Processing Toolbox™ functions classify pixels that are only partially within the boundaries of a region of interest.
Filtrar ROI
- Overview of ROI Filtering
To filter a region of interest (ROI), first define a mask to separate the ROI from the background, then apply the filter to the ROI only. - Sharpen Region of Interest in an Image
This example shows how to use masked filtering to increase the sharpness of a specific region of interest. - Apply Custom Filter to Region of Interest in Image
This example shows how to define your own function and mask to filter a region of interest. - Fill Region of Interest in an Image
The process of filling a region of interest involves replacing all pixels in the region by interpolating inward from the boundary of the region.
Crear ROI interactivas con eventos y funciones de callback
- Subsample or Simplify a Freehand ROI
This example shows how to subsample or reduce the number of points in aFreehand
ROI object. - Rotate Image Interactively Using Rectangle ROI
This example shows how to rotate an image by using a Rectangle ROI with a callback function that callsimrotate
when you move the ROI. - Use Polyline to Create Angle Measurement Tool
This example shows how to create an interactive tool that displays the angle between three vertices in a polyline ROI. - Measure Distances in an Image
This example shows how to use line ROIs to measure distances in an image. - Use Wait Function After Drawing ROI
This example shows how to define a custom wait function that blocks the MATLAB® command line until you finish positioning a rectangle.