dtr43

1

votes
1

answer
25

views

Creating an adjacency matrix from a cell array

I'm going to create an adjacency matrix from a cell array, but faced two main problems: I don't know how to access to cell array's elements; so an adhoc method was used. (and the most important) The code produces an error and the partial result is also a weird one! The cell array is as the following...
dtr43
5

votes
1

answer
105

views

Drawing Region Adjacency Graph

Having centroids of superpixels for an image, is there any MATLAB function for drawing region adjacency graph ? L = superpixels(A, 200); K=regionprops(L, 'Centroid'); % Detemining centroid coordinates of each superpixels P.S. Similar but not exact solutions : https://www.mathworks.com/matlabcentr...
dtr43
7

votes
2

answer
184

views

Adjacent and non-adjacent superpixels for an superpixel in an image

After segmenting an image into N superpixels, I need to specify the superpixels that are adjacent or non-adjacent to one superpixel and determine this relationship for all superpixels. [L,NumLabels] = superpixels(A,200); How can I specify the adjacent superpixels for each of superpixels ? Update I...
dtr43
3

votes
1

answer
39

views

Mean color for each superpixel in an image in the CIELAB colorspace

According to the MATLAB's help for measuring mean color for each superpixel, I segment an image to 200 superpixels and I tried to set the color of each pixel in the output image to the mean CIELAB color of the superpixel region. The input image is shown below: B=imread('H.jpg'); A=rgb2lab(B); //...
dtr43