Professional Interests: Image Processing
Top 1% contributor
6 months ago
You are standing on the beach of an island, which you must explore by walking all the way round its coast. Each step is in one o...
4 years ago
I'm overriding subsref and subsasgn for a class. I want to influence the behaviour of obj(...), but I can't find a good way to d...
Asked 5 years ago
The FFT method may be faster if the two arrays to be convolved are of similar size. You can pad the smaller to be same size as t...
Answered 5 years ago
It looks OK to me. You expect y to be zero everywhere, and so it is, apart from some arithmetic rounding errors. (If you sample ...
6 years ago
2 years ago
Overriding subsref and subsasgn in a class is spectacularly awkward.
The problem is this. Suppose you override subsref in orde...
Here is a description of the way I did it - but note that there are many different possibilities. If you try to do it this way a...
filter2 and conv2 do almost the same thing: the results are related like this:
conv2(image, mask) is the same as filter2(rot90...
function flag = isFourConnected(a,b,n,m)
% a,b: indices of interest a ~= b
% n,m: size of matrix of interest
It's simpler just to leave the data as it is and use datetick to set the axis annotations on your graph. Like this:
[ *Edited*: example changed and transpose of matrix in call to projective2d() inserted. See comments.]
It might be worth expe...
Answered 1 year ago
The problem may be that imwarp() crops the output image to the transformed positions of the corners of the input image. A simple...
Your comment suggests that you *do* want the results to be sorted, but according to position rather than strength. (Strength mea...
Answered 2 years ago
isequal(size(A), size(B)) || (isvector(A) && isvector(B) && numel(A) == numel(B))
Answered 4 years ago
There's a trade-off between speed and memory use. Accessing and updating individual bits is slow, due to the underlying hardware...
It's a bad idea to store your data in 1700 different variables: you'll find it is inefficient, and you already see how awkward i...
Looks like someone is forcing the class of A to be double rather than logical.
A = double(A>0)
would have the same effec...
The problem is that there is not an exact whole number of cycles of the sine wave in the original time series. If you look at th...
6 years ago
Is there an easy way to find all the example images (such as pout.tif, greens.jpg) that come with MATLAB and any installed toolb...
If the function is to accept a vector as input, as in the question:
function output = createRollingWindow(vector, n)
You probably don't have fftshow.m on your MATLAB path. This m-file is not part of MATLAB or its toolboxes, but needs to be obtai...
Your original code is almost right. You just need to think through the geometry a little more. This works:
st = regionprops...
Bmax = B(sub2ind(size(B), I, 1:size(B,2)))
I guess you mean that you would like to delete rows 1 and 4. If that's right, here's one way:
% set up the test data
Not sure what you mean by "adjustable in colour". The code below does the full colour wheel - it should give you a starting poin...
It looks as if you have used *cov* as the name of a variable.
to see if this is the case. You should see...
Your code process all the values of t - the problem is that the calls to disp are outside the loop, so they only show the values...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries