imopen Morphologically open image

collapse all in page

Syntax IM2 = imopen(IM,SE) IM2 = imopen(IM,NHOOD) gpuarrayIM2 = imopen(gpuarrayIM, ___ )

Description IM2 = imopen(IM,SE) performs morphological opening on the grayscale or binary image IMwith the structuring element SE. The argument SE must be a single structuring element object, as opposed to an array of objects. The morphological open operation is an erosion followed by a dilation, using the same structuring element for both operations. IM2 = imopen(IM,NHOOD) performs opening with the structuring element strel(NHOOD), where NHOOD is an array of 0's and 1's that specifies the structuring element neighborhood. gpuarrayIM2 = imopen(gpuarrayIM, ___ ) performs the operation on a graphics processing unit (GPU) with the structuring element strel(NHOOD), if NHOOD is an array of 0s and 1s that specifies the structuring element neighborhood, or strel(gather(NHOOD)) if NHOOD is agpuArray object that specifies the structuring element neighborhood. This syntax requires the Parallel Computing Toolbox™. Code Generation support: Yes. MATLAB Function Block support: Yes.

Class Support IM can be any numeric or logical class and any dimension, and must be nonsparse. If IM is logical, then SE must be flat. gpuarrayIM must be a gpuArray of type uint8 or logical. When used with a gpuarray, the structuring element must be flat and two­dimensional. The output has the same class as the input.

Examples Morphologically Open Image with a Disk­shaped Structuring Element Read the image into the MATLAB® workspace and display it. original = imread('snowflakes.png'); figure, imshow(original);

Create a disk­shaped structuring element with a radius of 5 pixels. se = strel('disk',5);

Remove snowflakes having a radius less than 5 pixels by opening it with the disk­shaped structuring element. afterOpening = imopen(original,se); figure, imshow(afterOpening,[]);

collapse all

Morphologically Open Image with Disk­shaped Structuring Element on a GPU Read an image.  original = imread('snowflakes.png');

Create a disk­shaped structuring element. se = strel('disk',5);

Morphologically open the image on a GPU, using a gpuArray object, and display the images. afterOpening = imopen(gpuArray(original),se); figure, imshow(original), figure, imshow(afterOpening,[])

More About

collapse all

Code Generation This function supports the generation of C code using MATLAB Coder™. Note that if you choose the generic MATLAB Host Computer target platform, the function generates code that uses a precompiled, platform­specific shared library. Use of a shared library preserves performance optimizations but limits the target platforms for which code can be generated. For more information, see Understanding Code Generation with Image Processing Toolbox. When generating code, the image input argument, IM, must be 2­D or 3­D and the structuring element input argument, SE, must be a compile­time constant. MATLAB Function Block You can use this function in the MATLAB Function Block in Simulink.

See Also gpuArray | imclose | imdilate | imerode | strel

Introduced before R2006a

Morphologically open image - MATLAB imopen.pdf

Morphologically open image - MATLAB imopen.pdf. Morphologically open image - MATLAB imopen.pdf. Open. Extract. Open with. Sign In. Main menu.

163KB Sizes 3 Downloads 136 Views

Recommend Documents

Accelerating MATLAB Image Processing Toolbox ...
Mar 14, 2010 - works on using GPUs to accelerate programs in MATLAB [21] .... Register File. A high number of registers (1k float4 registers or. 16kB) per core implies more computational work in each core. A relatively small number of registers (2k f

digital signal & image processing [matlab] -
Bio m etrics. PSDIP519. Gabor wavelet transform based facial expression recognition using PCA and LBP ... video surveillance. Video. Surveillance. 2014.

projects in image processing using matlab pdf
projects in image processing using matlab pdf. projects in image processing using matlab pdf. Open. Extract. Open with. Sign In. Main menu.

Count Objects in an Image - MATLAB & Simulink.pdf
Count Objects in an Image - MATLAB & Simulink.pdf. Count Objects in an Image - MATLAB & Simulink.pdf. Open. Extract. Open with. Sign In. Main menu.

digital image processing using matlab by gonzalez pdf free download
digital image processing using matlab by gonzalez pdf free download. digital image processing using matlab by gonzalez pdf free download. Open. Extract.

projects in image processing using matlab pdf
projects in image processing using matlab pdf. projects in image processing using matlab pdf. Open. Extract. Open with. Sign In. Main menu. Displaying projects ...

man-15\matlab-code-for-image-segmentation-pdf.pdf
man-15\matlab-code-for-image-segmentation-pdf.pdf. man-15\matlab-code-for-image-segmentation-pdf.pdf. Open. Extract. Open with. Sign In. Main menu.

Learning Rich Features for Image Manipulation ... - CVF Open Access
The noise stream first obtains the noise feature map ..... streams. Bilinear pooling [23], first proposed for fine- ..... [34] Y. Zhang, J. Goh, L. L. Win, and V. L. Thing.

matlab
The MathWorks, Inc. 3 Apple Hill Drive. Natick, MA 01760-2098. For contact information about worldwide offices, see the MathWorks Web site. Neural Network ...

MATLAB BOOK.pdf
Page 1. Whoops! There was a problem loading more pages. Retrying... MATLAB BOOK.pdf. MATLAB BOOK.pdf. Open. Extract. Open with. Sign In. Main menu.

MATLAB Primer
The plain TEX source and corresponding PostScript file of the latest printing of the ... MATLAB is an interactive, matrix-based system for scientific and engineering numeric .... multiple windows, you will want to keep MATLAB active in one window and

MATLAB - Ohjelmointi.pdf
Page 1. Whoops! There was a problem loading more pages. Retrying... MATLAB - Ohjelmointi.pdf. MATLAB - Ohjelmointi.pdf. Open. Extract. Open with. Sign In.

System Objects in MATLAB Code Generation - MATLAB & Simulink ...
System Objects in MATLAB Code Generation - MATLAB & Simulink.pdf. System Objects in MATLAB Code Generation - MATLAB & Simulink.pdf. Open. Extract.

INTRODUCTION TO MATLAB
7.1 Solve a Linear System . .... a sequence of Matlab commands that will be executed from top to bottom just as if you had typed them on the command ... There is also a wealth of information under Help Desk in the Help menu of Matlab's ...

INTRODUCTION TO MATLAB
Get on a department PC or buy Student Matlab for your own machine and start the .... x=0:h:20; % build an array of points [0,h,2h,...,20] ..... looks good. ... Note: the example in the box below is available on the Physics 330 course website, as.

Open Hearts Open Minds Open Doors - Commack United Methodist ...
Web Site: http://www.commack-umc.org ..... and drizzle to host a campfire where they had something most homeless ... One of our best selling items is Jewelry.