Question

Find the coordinates nearest to the center coordinate of a patch in an image

i have an image of size [512 512], and xy coordinates values, which have been found on the whole image. (I have attached an exam...

26 days ago | 2 answers | 0

Question

how to check if (x,y) coordinates fall within another (x,y) coordinate

i have the x,y,w,h --> [x position, y position ,width and height] of the two black boxes and the red boxes inside the black boxe...

1 month ago | 1 answer | 0

Question

Blob segmentation and writing it to folder

i have segmented few blobs using the below code ccnt = 1; for blob = 1 : n thisBoundingBox = measurements(blob).BoundingB...

1 month ago | 1 answer | 0

Question

draw bounding box around a character

The code i used is Ch = bw(boundrow(1):boundrow(end),boundcol(1):boundcol(end)); i'll get the character into the variable Ch ...

1 month ago | 1 answer | 0

Question

write an image file

i have a image im of uint16 datatype figure(1), imshow(im) figure(2), imshow(uint8(im)) figure(3), imshow(im,[]) all the abo...

3 months ago | 1 answer | 0

Question

find the next row of an element in a matrix

i have vector v v = [4,5;1,2;1,3;1,4;2,6;5,7;4,7;3,4;1,5;2,3;7,9;3,5;8,9;1,6;8 10;5,9;2,4;6,9;2,5;1,7;4,9;3,7;2,8;7,8;4,6;1,9;3...

3 months ago | 1 answer | 0

Question

find different combinations of splitting a vector

having a vector V, how can i find the different ways to split this vector v into subvectors such that the sum of each subvector ...

4 months ago | 1 answer | 0

Question

Sort matrix to get the row and column position of sorted matrix

how should i sort the matrix M = [0,15,14,13,10,7,4,1,2; 0,0,9,6,4,12,1,3,1; 0,0,0,10,8,5,3,1,2; 0,0,0,0,17,2,11,1,4; 0,0,0...

4 months ago | 1 answer | 0

Question

how to do the matrix computation

I have a cost matrix, c, with values as c =[0,12,11,7,10,10,9,8,6,12; 12,0,8,5,9,12,14,16,17,22; 11,8,0,9,15,17,8,18,...

4 months ago | 1 answer | 0

Question

access the respective values of matrix using the cell array cell position value

i have a matrix as shown in figure, with positions marked I have a cell array with values { [ 1 4 ] ; [ 2 3] }; Now i want ...

4 months ago | 1 answer | 0

Question

find values in vector present in cell array

i have a cell array cA and vector V with values cA = {[11,21,3;14,5,63], [11,22], [33;95;66;7]}; V = [14 22 33 66]; i wanted ...

4 months ago | 2 answers | 0

Question

how to split a vector into small subvectors based on condition

how can i split a vector into smaller sub vectors, such that the sum of each vectors is less than N N = 60 V = [30 35 24 15 14...

4 months ago | 2 answers | 0

Question

display contents of cell array and a vector together

i have a cell array cell_array = {'A' 'B' 'C'} and value = [ 10 20 30] how can i display the cell_array and value_vector toge...

4 months ago | 1 answer | 0

Question

compute from a set of parameters

C = 60; % capacity of a truck demand = [30 35 24 15 14 48]; % goods to deliver m = 2; % no of avaible trucks i wanted to comp...

4 months ago | 1 answer | 0

Question

comparing pixels in 3x3 block

Having a matrix as shown below i wanted to take 3x3 pixel and compare the 3 pixels (highlighted in yellow colour) with th...

6 months ago | 1 answer | 0

Question

fill a boundary region with white colour

i have identified boundaries from a binary image using boundaries = bwboundaries(bw); The output of the above line of code is ...

8 months ago | 3 answers | 0

Question

how to duplicate the values in one matrix create another matrix of specific dimension

i have a cell array of dimension 1x60, each matrix in cell array is of dimension 23x23 of double datatype i converted this cell...

8 months ago | 1 answer | 0

Question

comparing 3x3 block with center pixel

i have a matrix as shown below i wanted to take 3x3 pixel and take 3 pixels at a time along with the center pixel, and comp...

8 months ago | 2 answers | 0

Question

Find histogram bins at which cumulative histogram has 75% of maximum value

How to find histogram bins at which cumulative histogram has 75% of maximum value of an image.

8 months ago | 1 answer | 0

Question

concatenate column values in a vector

i have a vector v1 = [ 1,0,1,0] (dim 1x4 double) i wanted to join the values in v1 to a new variable v2 = [1010] (dim 1x1 do...

8 months ago | 3 answers | 0

Question

give labels according to string

I have a cell array of strings with the following pattern String Label 'Abc\a1\L\XYZ1R08' 1 'Abc\a1\R\XYZ1R09' 1 ...

8 months ago | 1 answer | 0

Question

Find geometric mean and arithmetic mean

how to find geometric mean and arithmetic mean of histogram of an image

8 months ago | 1 answer | 0

Question

get all image files from nested folder

how to get all image files in such a directory ( folders inside folders )

1 year ago | 1 answer | 0

Question

delete empty cells from cell array

how to delete the empty cells and get back 4x4 matrix i tried out = ca(~cellfun('isempty', ca)); but i'm getting output ...

1 year ago | 1 answer | 0

Question

How to create a white rotated box inside a black box

How to create a white rotated box inside a black box as shown in image

1 year ago | 1 answer | 0

Question

find a vector in a cell array

AP = {[1,2,14];[1,5,14]} P = {[1,5,14]}; i wanted to check if P is in AP i did as IsInAp = find(cellfun(@(x) ismember(path,x...

1 year ago | 1 answer | 0

Question

select rows satisfying a particular condition

having a matrix of dim 5 x 10 if i give start_index = 1, and end_index = 3, i wanted to get rows starting with value of start...

1 year ago | 2 answers | 0

Question

how to find all possible path between 2 nodes

knowing the connectivity between nodes, how can i find the possible path between 2 nodes?

1 year ago | 2 answers | 0

Question

how to select neighbouring 5 pixels of an image

I wanted to take one pixel from an image say im(x,y) then take the neighbouring 5 pixels of position im(x,y) find the maximum ...

1 year ago | 1 answer | 0