Visualize/plot the morphological structuring element in Matlab

Someone can help to visualize or plot the morphological structuring element, created by function 'strel' for only 'disk' structuring, in Matlab? Thanks.

-------------Problems Reply------------

Yes, it's a big strange, but I assume that for efficiency reasons, strel returns a special type that's a structuring element type.

You have to use the getnhood function as in this link, something like this:

se3 = strel('disk',15);
nhood = getnhood(se3);
imagesc(nhood); axis xy; colormap('gray');

Category:matlab Views:1 Time:2011-05-02
Tags: matlab

Related post

  • dynamic structure generation in Matlab 2011-03-13

    I have a list of field names and want to generate a nested struct. I tried this: fn1 = {'a', 'b', 'c'}; fn2 = {'d', 'e', 'f'}; s = struct(); for n1=fn1 for n2=fn2 s.(n1).(n2) = 0 ; end end but Matlab complaint that the notation ".{fieldname)" is for

  • Plot images as axis labels in MATLAB 2011-01-31

    I am plotting a 7x7 pixel 'image' in MATLAB, using the imagesc command: imagesc(conf_matrix, [0 1]); This represents a confusion matrix, between seven different objects. I have a thumbnail picture of each of the seven objects that I would like to use

  • How to plot a 3d surface graph in MATLAB? 2011-11-26

    I have a dataset like so: | 0.1 0.2 0.3 0.4 ---------------------- 1 | 10 11 12 13 2 | 11 12 13 14 3 | 12 13 14 15 4 | 13 14 15 16 I want to plot a 3D surface graph in matlab such that the column headings will be on the y axis, the row headings will

  • Is it possible to get structural elements from a PDF file using iTextSharp? 2012-02-16

    We are using iTextSharp with a C# WinForms application to parse a PDF file. Using iTextSharp, I can easily extract the text data from the PDF file. Suppose a PDF file contains an image surrounded by two lines of text. In this case, I could not extrac

  • How can I reset the List(of String) in my structure but not reset the values in the previous structure element in VB.NET? 2014-01-15

    I have multiple menu items. Each menu item has multiple fields. I'm trying to add all field values the AllFields variable for each item, but I keep getting values from the previous item(s) (example: the first item has 12 field values (which are diffe

  • How can I visualize/plot temperature gradient using matlab? 2012-01-18

    I have data at specific points in 3D rectangle and I want to see temperature gradient. I have values at specific points , but I want a continous flow of gradient between each sensor. I am not been able to figure out how to visualize or map data in be

  • Reading a big structured file in Matlab 2012-01-30

    In matlab I would like to read from a structured, and rather big, file (size: 18+2048*2048 bytes), where 18 fist bytes are assigned to the header and the rest are pixel image intensities. The concern here is the speed. As you see in the code below mu

  • How to set the fields simultaneously in a large structure array in Matlab? 2013-05-23

    I have a large structure array. I would like to perform a sensitivity analysis on a function that processes this array. So, say my structure array has name 's', 10,000 elements, and field names 'x' and 'y'. I'd like to do the following: xs = [s(:).x]

  • Performance of swapping two elements in MATLAB 2009-02-02

    Purely as an experiment, I'm writing sort functions in MATLAB then running these through the MATLAB profiler. The aspect I find most perplexing is to do with swapping elements. I've found that the "official" way of swapping two elements in a matrix s

  • Accelerating saving plot figures as bitmap image in MATLAB 2009-07-21

    I have bmp images in image folder on my computer.I named it from 1.bmp to 100.bmp .All of them size is 576*768 I read one by one these hundered images.I select rectangular region from all hundred images.Rectangular region's pixel coordinates is chang

  • How to sort structure arrays in MATLAB? 2009-09-30

    I'm working with an image retrieval system using color histogram intersection in MATLAB. This method gives me the following data: a real number which represents the histogram intersection distance, and the image file name. Because they are different

  • Comparing adjacent elements in MATLAB 2010-02-13

    Does anyone know how I can compare the elements in an array with the adjacent elements? For example, if I have an array: 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 Is there a way to cycle through e

  • Finding whether a value is equal to the value of any array element in MATLAB 2010-03-14

    Can anyone tell me if there is a way (in MATLAB) to check whether a certain value is equal to any of the values stored within another array? The way I intend to use it is to check whether an element index in one matrix is equal to the values stored i

  • Plotting images over a graph in Matlab 2010-07-07

    Does anyone know how can one plot() a regular 2D plot in Matlab, and draw little images over that plot? Thanks for any tips. --------------Solutions------------- Hmmm, my bad, it's all there in the basic Matlab commands: You do your plot(), call 'hol

  • Accessing Structure elements in C 2010-08-30

    I am trying to access the element asd7 inside the innermost structure, here is my code: #include <stdio.h> int main() { struct asd { int asd; struct asd1 { int asd1; struct asd6 { int asd7; }asd6; }asd1; }asd; int asd10; int asd11; struct asd *

  • How do I extract matrix elements in matlab? 2010-09-18

    Possible Duplicates: MATLAB Easiest way to assign elements of a vector to individual variables. How do I do multiple assignment in MATLAB? If I have a matrix: A = [1, 5, 10], do I set a1 = A(1), b1 = B(1), etc. on one line? I want to do something lik

  • How do I bind a text box to a structure element? 2011-02-06

    I would like to bind the text field of a textbox to an element in an instance of a structure that I've created in a class module. When I try to create a Data Source using an OBJECT type, all I see in the tree is the name of the structure, not the ins

  • C and dynamic structure element access 2011-04-02

    I have this complicated structure thingie: #include <stdlib.h> typedef struct { int x; int y; } SUB; typedef struct { int a; SUB *z; } STRUCT; #define NUM 5 int main(void) { STRUCT *example; int i; example = malloc(sizeof(STRUCT)); example->

  • Counting the number of elements in matlab 2011-04-29

    I am new to MATLAB. Suppose I have a vector like x = [1 1 1 1 1 1 0 0 1 0]. I want to calculate the total number of elements in the vector and the number of non zero elements in the vector. Then come up with a ratio of both the numbers. I am searchin

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.093 (s). 11 q(s)