65 total contributions since 2011

Question

finding submatrix and index

Hi I have the following matrix as two small sample matrix. I want to fill the matrix value zero with 1 between two diagonal 1. ...

7 years ago | 2 answers | 0

Question

How to do set subtraction

I have two array a=[1,2,3] and b=[2,3,4,5] I need a array c=b\a. Here \ is the set subtract operation. result is as follows: ...

7 years ago | 2 answers | 0

Question

how to generate customize color

hi, I have a matrix m as follows: 1 1 1 1 3 3 3 4 4 4 1 1 1 1 ...

7 years ago | 0 answers | 0

Question

subscript problem

I have a code as follows: hsv=rgb2hsv(iOrg); g=stdHue(hsv(:,:,1)*360); where stdHue is a user defined function. but it ...

8 years ago | 1 answer | 0

Question

finding longest length

Hi ,I have a matrix as follows I = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

8 years ago | 0 answers | 0

Question

color conversion

Hi I have three value r=60 g=120 b=50; I need to convert this in Luv color space what will be the formula.i.e i need correspo...

8 years ago | 1 answer | 0

Question

problem in perimeter

hi, I have a matrix as follows: I = 0 0 0 0 0 0 0 0 1 1 0 0 ...

8 years ago | 4 answers | 0

Question

finding homogineity of a portion of matrix

i have a matrix as follows: I = 1 1 1 1 8 1 2 1 1 8 8 8 2 1 ...

8 years ago | 0 answers | 0

Question

finding homogineity of a matrix

I have the following code: [r c]=find(I==1); smallGrayImage=grayImage([r c]); smallGLCM=graycomatrix(smallGrayI...

8 years ago | 1 answer | 0

Question

how to find uniformity of an image

I have an image I (colored image). I have standard deviation and entropy of the image say 7 and 5 How to get the uniformity of...

8 years ago | 1 answer | 0

Question

conversion formula

I have three value h=20 s=60 v=30 I want to convert this value to Lab color space.i.e. the value of L , a,b Is there any one ...

8 years ago | 1 answer | 0

Question

for loop problem

for i=1:a:20 idx=find(consecutiveDiff(:,1)==val(i)); a=numel(idx); end i need to increment the value i as th...

8 years ago | 1 answer | 0

Question

finding value index within a range

hi i have a matrix a = 1 2 3 4 5 6 7 8 9 I need to find the index of those who...

9 years ago | 1 answer | 0

Question

combination problem

Hi suppose I have some values 1 2 3 4. I want to find all possible combination of these four, taking only two distinct elemen...

9 years ago | 1 answer | 0

Question

adjacent region

Hi suppose I have a matrix as follows: I = 1 1 2 2 1 1 3 1 1 1 2 2 I...

9 years ago | 0 answers | 0

Question

adding values in array

Hi suppose I have two variable idx1= 1 2 3 idx2= 4 5 I need to have a third variable idx3 where idx3= 1 2 3 4 5 ...

9 years ago | 1 answer | 0

Question

how to exit for loop

Hi, I have the following code: for m=1:10 for n=1:sz(2) if(Isingle(m,n)==1) ...

9 years ago | 2 answers | 0

Question

finding pixel near border

Hi, I have a matrix as follows: I = 1 0 0 0 0 1 0 1 0 0 1 0 0 ...

9 years ago | 1 answer | 0

Question

finding index inside a region

suppose I have a matrix I. I = 4 4 4 4 4 4 4 4 1 1 1 1 3 0 4 ...

9 years ago | 2 answers | 0

Question

finding lenght of each branch

Hi, I have a matrix as follows: I = 1 0 0 0 0 1 1 0 0 0 1 0 0 ...

9 years ago | 0 answers | 0

Question

function problem

I have a function function [I]=removehole(a,b,c) I=zeros(size(a)); I called this function from another file as follows: map=...

9 years ago | 1 answer | 0

Question

hist problem

I have the following code: out=I(outPixel); [counts,values] = hist(transpose(out),unique(out)); Frequency=[...

9 years ago | 1 answer | 0

Question

removing area

I have a code like this. CC = bwconncomp(I2); STATS = regionprops(CC,'Area'); idx = find([STATS.Area] <100); I2(idx)...

9 years ago | 3 answers | 0

Question

sub2ind problem for matrix

I have a matrix r = 6 1 5 2 4 3 3 3 2 3 1 2 2 3 ...

9 years ago | 1 answer | 0

Question

finding region

Hi I have a matrix as follows: I= 1 1 0 0 0 0 0 0 0 0 0 0 1 ...

9 years ago | 3 answers | 0

Question

finding interior or exterior points

Hi, I have a matrix as follows: I = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

9 years ago | 2 answers | 0

Question

finding neighbor of a position

Hi, I have a matrix. I = 1 0 0 2 5 0 0 0 3 0 0 0 I know the posi...

9 years ago | 4 answers | 0

Question

filling regions of matrix

Hi have a matrix. I = 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ...

9 years ago | 2 answers | 0

Question

finding endpoints of a label

Hi, I have the following matrix. I = 0 0 0 0 0 1 1 1 0 0 0 0 0 ...

9 years ago | 3 answers | 0

Question

sortrows

Hi,I have a matrix. I= 1 4 5 6 2 3 I want the output sorting in the following 5 6 2 3 1 4 Thanks.

9 years ago | 1 answer | 0