Skip to main content

All Questions

1 vote
1 answer
84 views

matlab Array dimensions must match for binary array op

i have been stuck on this problem for quite a while now, i am trying to make a code in matlab that looks through a wally crowd picture and tries to find wally by comparing it to a picture of wally ...
Davi Franke's user avatar
0 votes
1 answer
122 views

Store matrices in an array - MATLAB

I am trying to store 2x2 matrices in an array, which is to be connected to a particular size of an image for futher image processing. I.e.: pixx = 300; % x number of pixels; pixy = 200; % y number of ...
Deyan's user avatar
  • 23
1 vote
3 answers
136 views

Matlab: Replace zeros with last non-zero index

I have a matrix Cr of size 352x240 uint_8. How can I replace zeros with last non-zero index? For example, output should be like this: 141 141 141 142 ... 141 141 141 142 ... 141 141 141 142 ... 141 ...
user avatar
1 vote
2 answers
799 views

I have problem with converting MATLAB code to Python

I need to convert the block of code that's shown below to Python. I created two arrays named u and v seperately and put them in a for loop in the range 0 to M-1 and I know find works similar to if ...
imageprocessingproblem's user avatar
0 votes
1 answer
1k views

How to fix this error Index in position 2 exceeds array bounds in MATLAB?

I have a problem with this line of code bloop(rj,cj) = J1(i,j). I tried it a lot and changed the numbers, but the error remains. The Error is Index in position 2 exceeds array bounds bloop(rj,cj) = J1(...
Elaf A's user avatar
  • 1
0 votes
0 answers
118 views

trying to measure the diameter of a golf ball using regionprops from image-proc toolbox

I wrote a program that takes an image of a golf ball, processing it to create a binary image that represents only the ball in white and the rest of the picture (background) in black. I want to use the ...
user avatar
-1 votes
1 answer
2k views

Error using ones Size inputs must be integers?

hello every one i have a problem with my code for error r =[zeros(size(img2,1),size(img2,2)) ones(size(img2,1),size(img2,2)/2)]; where img2 an image of size [111 235] Error using ones Size inputs ...
Youbaa Baba's user avatar
1 vote
0 answers
262 views

Matlab: multidimensional array for images

I am new to the concept of multi-dimensional array and I am trying to apply it to the following image that I have: What I would like to do is to create a 5D array as follow [number of boxes in a row, ...
Anna1994's user avatar
  • 150
1 vote
2 answers
532 views

Matlab Gradient of depth image

I would like to know if it is possible to calculate the gradient of a depth image, given a depth array in Matlab, (i.e. calculate the distance between connected pixels, 2D array cells, in the depth ...
Sebastião's user avatar
1 vote
1 answer
793 views

Fetching brightest pixel from a grayscale image

I have a grayscale image from which I need to find the top 0.1% brightest pixels. I tried using a max function on 0.1% of the pixels but it is not giving me correct results. Code: [m,n]=size(image)...
Zainab's user avatar
  • 71
1 vote
1 answer
2k views

passing an array as an index to another array?

alright so I'm writing some code used for image processing and most of it is converted from some old matlab code for the same process. At the point I'm at now(the final step in the process) I need to ...
Spider Jerusalem's user avatar
1 vote
0 answers
42 views

How do I test and invalidate points close to the image border?

I have the indices of several points of interest in a 3d image PIdx = [864, 865,866,867,868,869,870,871,872,873,874,2068,2079,3327]; I am to perform certain operations at each of these points – one ...
User1333's user avatar
1 vote
2 answers
2k views

How to Get pixel Intensity Values Matrix

I want to get the closer look of images pixels and also the pixel value matrix (which usually ranges 255 integer values I think). Do I need Matlab, or any other program/framework? (I am a Computer ...
rooney10057's user avatar
0 votes
1 answer
33 views

Can I output text/variables that are not part of a graph to a figure window?

In Matlab Can I output text/variables to a figure window that are not part of a graph? For example. I have a image that I am running a filter through. I want to display the new image with ...
Stewart Moon's user avatar
0 votes
1 answer
58 views

How do I replace pixels that meet a distance criteria?

I have the image: A = [3 1 1 2 2 0 0 0 3 2 0 0 3 3 2 1 1 1 1 2 1 1 1 2 2]; From the image I obtained the following matrix: B = [1,1; 3,3; 2,4; 3,4]; Now, I want to test the ...
User1772's user avatar

15 30 50 per page