Answered
Filtering outlier in 2D coordinate data
Well this works for "the problem I have at the moment", though there are even simpler methods, and more sophisticated methods. ...

8 dagen ago | 0

| accepted

Answered
subtract each pixel from average pixel value
Try (for an integer gray level image): newImage = double(yourImage) - meanValue; where you said you already have the meanValue...

8 dagen ago | 1

Answered
User defined minimum Function
Try this: function colMins = GetColumnMins(m) % m is a matrix colMins = min(m, [], 1); You can rename GetColumnMins, m, and ...

8 dagen ago | 0

Answered
Is the .jpg image one-dimensional and two-dimensional?
JPG images are already demosaiced. I think you're using a raw image. Raw images usually are not demosaiced - they're just red,...

12 dagen ago | 1

Answered
Counting the number of a specific word in text.
Instead of A=input(filename,'s'); try this: [folder, baseFileName] = uigetfile('*.*'); filename = fullfile(folder, baseFileN...

12 dagen ago | 0

Answered
How to plot like a movie this 30 heatmaps
See attached demo where I plot some stuff in a series, then construct a movie from the series of plots.

12 dagen ago | 0

Answered
How can I find an image in its miniature form in another image ?
Use normxcorr2() with the template being the mini-image. See my canned demo, attached. Change my template to yours, which is t...

13 dagen ago | 0

| accepted

Answered
Pad empty spaces in matrix with 0
Try this: c1m_wrf = [1 4 6 3 7 3 ] c2m_wrf = [4 6 2 9] c3m_wrf = [5 5 8 2 5] c4m_wrf = [4 8 1 3 9 4 ] maxLength = max([leng...

13 dagen ago | 1

| accepted

Answered
Array indices must be positive integers or logical values.
It's a FAQ so see the FAQ for complete info: Click here for the FAQ In short, you can't start with x(0) since 0 is not an allow...

13 dagen ago | 0

Answered
or operation on the columns of a matrix ?
Try rowHasOnes = any(S, 2); If not, then supply an example S and the expected result.

13 dagen ago | 0

| accepted

Answered
How to find pixel connect in column matlab
This will give you result = 1 1 1 2 2 0 0 0 0 0 exactly as you wanted (in your curr...

14 dagen ago | 1

| accepted

Answered
passing variable from one callback to another callback in gui
This is a FAQ, so See the FAQ document

14 dagen ago | 0

Answered
How can I get the number between 2 numbers?
If you have the Image Processing Toolbox, you can simply use ismember() followed by regionprops() and in 2 lines of code be done...

14 dagen ago | 0

Answered
stretch histogram for comparison
Try imhistmatch(). Or multiply the dark image by 2. Or imadjust().

14 dagen ago | 0

Answered
Changing the brightness of an image using slider in Matlab GUI
It probably really is RGB even though it looks like RGB to you. You can cast all images to gray scale like this: ImageFile=imr...

14 dagen ago | 0

| accepted

Answered
How can I change the pixel RGB value of each frame of the video?
Just read in each frame into a variable, and then change it in whatever way you want. See attached examples.

15 dagen ago | 0

Answered
inter distance between point to be more than a certain number
You can try my demo, that I've posted before. It's a pretty simple "try and reject or accept" method, but it's intuitive and we...

15 dagen ago | 0

| accepted

Answered
Problem of 2 images with different scale and orientation
You will need to spatially calibrate your images to real world units. See my attached demo for an example that you can adapt. ...

16 dagen ago | 1

Answered
Using inbuilt RANSAC function for circle fit in 2D data
Why RANSAC? Why not use the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_fit_a_circle_to_a_set_of_XY_data.3F

17 dagen ago | 0

Answered
How to take maximum vector from the image? Can anyone name the function
With g1 = g at time 1, and g2 = g at time 2, try t=0.1 bw1 = 255 / (1-t) + (1/(1-t)) * double(g1); t=0.2 bw2 = 255 / (1-t) +...

19 dagen ago | 0

Answered
I asked before but i can not reach the solution, so how can we plot our 4th order polynomial with given data by using polyval()?
Try this, where I fit both the original training points, and then a larger number of points to get a smoother curve, including i...

19 dagen ago | 0

Answered
Conversion pixel size into mm ?
See my attached spatial calibration demo.

19 dagen ago | 0

Answered
Matrix into Sub matrix of length 8
What did you try for reshape? Did you try reshape(A, [], 8)? A=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24...

20 dagen ago | 0

| accepted

Answered
How change Image/2d array proportions?
Use imresize(): [rows, columns, numberOfColorChannels] = size(yourImage) newWidth = round(columns * (210/25.4)) yourImage = i...

20 dagen ago | 1

| accepted

Answered
How to insert an element after each number in a vector?
Instead of "after each number" did you mean "after each number, EXCEPT the first number, where the number is also before the fir...

20 dagen ago | 0

Answered
How can I get total intensity of particles in noise image?
You can get in a loop where you measure the mean and SD. Attached is an example where I get the mean - make adaptations as need...

20 dagen ago | 0

Answered
Access to array of structs (no for loops)
Try this: allValues = [rec.datarow]; % String together into single vector. allendvalues = allValues(5:5:end) % Subsample. As...

20 dagen ago | 0

Answered
How do I find the pixel co-ordinates in an image in order to find the colour properties like red_mean, blue_mean, etc at that pixel?
You don't need to get the pixel locations of every pixel in the blobs. You just pass in the labeled image itself and ask region...

20 dagen ago | 1

| accepted

Answered
How to translate this equation in matlab, please help thanks!
Pretty much like the way it looks: L = 10 % ft r = 1 % ft h = 0.1620 % ft. V = L * (0.5*pi*r^2 - r^2 * asin(h/r) - h^2 * (r...

20 dagen ago | 1

| accepted

Load more