답변 있음
How to look up a smaller array in a larger array while preserving shape
I'm going to demonstrate a couple ways you can do this using neighborhood operations. The case of a solid 2x2 nhood is a bit of...

10일 전 | 0

답변 있음
Color in Edge Detection with Sobel Operator on RGB Image Output
There's some confusion going on here. The colors in the two images represent different things. Let's start with the latter. ...

10일 전 | 0

답변 있음
Write a matlab function, image processing
There are countless sliding window filter examples here. I'm not going to write another. I don't have much patience for assign...

10일 전 | 0

답변 있음
Find width and height of .jpg image
See this https://www.mathworks.com/matlabcentral/answers/81089-finding-the-dimensions-of-an-image That said, how do you find t...

12일 전 | 0

답변 있음
There are some things to consider when using padarray() to match image geometries. A = imread('cameraman.tif'); % 256x256x1 (...

12일 전 | 0

답변 있음
How to reconstruct the images from the blocks of pixel?
Matt's answer is probably the more general answer, but I'll repeat what he said. We can't know what order you're trying to tile...

12일 전 | 2

답변 있음
How to check if each element of a matrix is larger/smaller than the mean of the elements of the respective line?
Here's one way; I'm sure there are plenty of other ways. % some matrix A = magic(5) % row means rmn = mean(A,2) % element i...

13일 전 | 2

답변 있음
How can I make this graph with the "for" command?
Good gravy it's been forever since I did any of this. Here's a start. ze = [0 0.2 0.4 0.5 1 1.5]; for k = 1:numel(ze) % ...

13일 전 | 0

| 수락됨

답변 있음
Separating YCbCr components of an image

14일 전 | 0

답변 있음
how to create color checkerboard any size
I'm going to treat this as two separate questions: How to create a colored checkerboard/chessboard How to make the squares ran...

14일 전 | 0

답변 있음
How to draw a shape using * and a loop
I seem to recall more, but I'm pretty sure I also recall some that got erased by the OP. Such are homework questions. https://...

14일 전 | 1

답변 있음
How to rotate this 2d matrix with some angle ?
You'll need more than zdata to rotate the plot. You'll need to define the x and y positions of the points. If you just want ...

16일 전 | 0

| 수락됨

답변 있음
size of the left side is 2-by-1 and the size of the right side is 1-by-1001
I think this is what you're after: err_semi_imp(:,n) = max(abs(u_semi_imp_euler - u_exact(taxis)),[],2);

16일 전 | 0

답변 있음
How to display a number of black tiles on a figure
Depends what you mean by "tiles", and it depends what you want to do with the output. This might help. A = ones(100,100); f...

16일 전 | 0

답변 있음
Do not use the for loop to calculate the first number greater than 0 in each line
Here's one way. x = randn(10,10) [~,idx] = min(x<=0,[],2) % note the logical inversion firstnz = x(sub2ind(size(x),(1:size(x...

16일 전 | 2

답변 있음
How matlab calculate SINR? (Mathematically)
The documentation for sinr is fairly descriptive. From the synopsis: The default propagation model is Longley-Rice when terrai...

16일 전 | 0

답변 있음
how to fill the circle with grids?
Not sure where this is going, but here's one way. Instead of doing normal line-circle intersection finding, I'm going to find...

16일 전 | 0

답변 있음
i need to pad my matrix only from the ends like this picture

16일 전 | 1

답변 있음
How can I set xticklabels to an array?
The array given to xticklabels() doesn't have to be a cell array of chars. It can be a cell vector of chars a cell vector of ...

17일 전 | 0

| 수락됨

답변 있음
Find the perimeter of the shaded region-- the logical "1."
See bwperim() or regionprops() to get the perimeter. If you want to come up with a different way to define the perimeter, that'...

18일 전 | 0

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

18일 전 | 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);...

18일 전 | 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...

18일 전 | 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...

18일 전 | 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...

18일 전 | 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...

19일 전 | 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...

19일 전 | 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...

19일 전 | 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...

20일 전 | 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 ...

20일 전 | 0