답변 있음
MATLAB plot image margin removal and aspect ratio keeping
Save the image, not a screenshot of the image. Saving things by capturing figures is a poorly controlled workflow and is often ...

11일 전 | 0

답변 있음
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);...

11일 전 | 1

| 수락됨

답변 있음
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...

11일 전 | 0

| 수락됨

답변 있음
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...

11일 전 | 0

답변 있음
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...

11일 전 | 0

답변 있음
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...

12일 전 | 0

답변 있음
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...

12일 전 | 0

| 수락됨

답변 있음
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...

12일 전 | 1

답변 있음
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...

13일 전 | 0

| 수락됨

답변 있음
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 ...

13일 전 | 0

답변 있음
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...

13일 전 | 0

답변 있음
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...

13일 전 | 0

답변 있음
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 ...

14일 전 | 0

| 수락됨

답변 있음
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...

14일 전 | 0

답변 있음
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,...

14일 전 | 0

답변 있음
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 ...

15일 전 | 1

답변 있음
how to transform 1 image to another .
A very simple correction: d = (img1-img2)./20;

15일 전 | 0

답변 있음
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....

15일 전 | 0

답변 있음
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))

15일 전 | 0

답변 있음
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...

15일 전 | 0

답변 있음
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 ...

15일 전 | 0

답변 있음
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...

15일 전 | 0

| 수락됨

답변 있음
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...

16일 전 | 0

답변 있음
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...

16일 전 | 0

답변 있음
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...

16일 전 | 0

답변 있음
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...

17일 전 | 0

답변 있음
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...

17일 전 | 0

답변 있음
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...

17일 전 | 0

답변 있음
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 ...

17일 전 | 0

답변 있음
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...

19일 전 | 1

| 수락됨

더 보기