Réponse apportée
Error using vertcat Dimensions of arrays being concatenated are not consistent.
This line: rectangle('Position',[(real(i,1)-kalmanx) (real(i,2)-kalmany) xwidth ywidth],'EdgeColor','r','LineWidth',1.5);...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Once centroid is calculated, how to assign x & y coordinates to it to then put into further calculations
You should just be able to get them from the struct. %Yellow/Red centroid coordinates ri = redCentroid.Centroid(2); rj = redC...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to make a 31x31 matrix of zeros with 300 1's in random position
I'm sure this can be cleaned up, but here's one way. sz = [31 31]; X = zeros(sz); % an array of zeros X(1:300) = 1; % put 300...

plus de 3 ans il y a | 0

Réponse apportée
change an image from rectangular to square by adding white area
I don't normally use getrangefromclass(), but that's one way to get the white value. Of course, it's impossible to tell that th...

plus de 3 ans il y a | 0

Réponse apportée
How do I compute an equation that uses values from pixels in an image?
I'm going to assume this homework is overdue now. I'm just going to dump this to get it out of my queue. As I said, this can...

plus de 3 ans il y a | 0

Réponse apportée
How do I repair noisy picture and invert the bw color?
This is a very lazy answer. Consider this more a matter of cleanup than optimizing the object reconstruction. I'm not going to...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to make a bar graph depiction of SSIM values? How?
You should be able to use bar(). If you have a vector of SSIM values, you can just plot them. ssimvec = [0.964 0.97 0.839 0.90...

plus de 3 ans il y a | 1

Réponse apportée
Triangle Circle Dataset Creation
Until clarification, here's a crude example. % some parameters, maybe? szo = [500 500]; % [y x] fgcolor = [0.7 0.3 1]; bgcol...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I plot 2 arrays against each other so that each row of the arrays corresponds to each data point
I'm not really sure what the correct output is supposed to be. If it's supposed to be crossed boxes in a diagonal, x = 3; y ...

plus de 3 ans il y a | 0

Réponse apportée
Continuous error bar across the x
What about boundedline doesn't work? If you specify y as a constant-valued vector, I don't see why it wouldn't work. You cou...

plus de 3 ans il y a | 0

Réponse apportée
Setting a Colormap To An Errorbar Plot
As far as I know, the answer is no. The documentation and error messaging supports this assertion. It should not be surprising...

plus de 3 ans il y a | 0

Réponse apportée
How do I remove blobs connected to border?
This is one way. Use the ROI mask to connect the truncated blobs to the image border. Then you can use imclearborder(). % an ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Normalization Of color spaces
I know everyone just recommends mat2gray(), but I cannot see why that's universally appropriate; I certainly can't see it as ap...

plus de 3 ans il y a | 0

Réponse apportée
Cart2pol function: wrong output angle is produced when input angle is in degrees, any help??
Here's one fix and some improvement. x = 1; y = 1; [th r] = cart2polar(x,y,'D') function [theta, r] = cart2polar(x, y,...

plus de 3 ans il y a | 0

Réponse apportée
Difference (mistake) between two images
This isn't exactly production ready, but it's a rough example. This uses CVT tools to do the registration estimation. I don't ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how to transform 1 image to another .
A very simple correction: d = (img1-img2)./20;

plus de 3 ans il y a | 0

Réponse apportée
displaying a 512 *512 8 bpp image
The image is an indexed image. You need the corresponding color map in order to do anything with it. [A map] = imread('lena....

plus de 3 ans il y a | 0

Réponse apportée
Indexing arrays for two specific values in the same row?
Here's one way: array = [4,5,6,7,8;4,6,9,8,1;3,7,4,5,9;6,7,8,1,4]; matchedrows = find(all(array(:,1:2) == [4 5],2))

plus de 3 ans il y a | 0

Réponse apportée
how do I make this image whietish?
To recreate this image in this specific example, we might compare it directly to its source and see what's been changed. Unfort...

plus de 3 ans il y a | 0

Réponse apportée
how to change luminance level of binary image?
The problem here is simple. You're calculating the threshold values from the luma channel (Y), but you're not thresholding the ...

plus de 3 ans il y a | 0

Réponse apportée
how to generate rain for clear images?
There's this paper and demo on the FEX, and there are probably others. https://www.mathworks.com/matlabcentral/fileexchange/593...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I overlay transparent color on a grayscale image in MATLAB 6.0 (R12)?
Why is that the accepted answer for this question? That seems to have nothing to do with the question at all. The question app...

plus de 3 ans il y a | 0

Réponse apportée
Color Imaging - RGB Channels
I know this is homework and that actually trying to make the result not look like garbage is well beyond the scope of the assign...

plus de 3 ans il y a | 0

Réponse apportée
Creating rainbow coloured plots in 3d
One common way to do this is by using a scatter plot. Unlike plot() or plot3(), scatter() and scatter3() can have their markers...

plus de 3 ans il y a | 0

Réponse apportée
Size function regarding image
Another way to describe the scalar output syntax is simply that the last output argument is always the product of the sizes of a...

plus de 3 ans il y a | 0

Réponse apportée
How can I filter region of interest (ROI) selected in a 3 d array image (RGB) without converting to grayscale?
If you're just filtering RGB images, there's no reason to jump through any special hoops. There are a number of ways this can b...

plus de 3 ans il y a | 0

Réponse apportée
How to get quiver plot with gradient color
This isn't something that can be done directly with the quiver object. There is a FEX tool that can do a colormapped quiver p...

plus de 3 ans il y a | 0

Réponse apportée
Adding transparency to one contour plot based on another contour plot
I said I wasn't going to make an example, but I guess I did anyway. % these limits must be common to both plots % otherwise ...

plus de 3 ans il y a | 0

Réponse apportée
How to crop object in image automatically?
It might be better to work on getting a better segmentation, but here's one way you might approach the cleanup. % this is a l...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Convert RGB image to YUV (MATLAB)
First, that's not YUV. I know everyone calls it YUV. If it's not analog PAL video, it's probably not YUV. That's the forward ...

plus de 3 ans il y a | 0

Charger plus