답변 있음
Blue Channel Not Separating from Image
If the image contains color content, but is returned as a MxN array when using imread() as shown, then chances are the image is ...

2년 초과 전 | 0

답변 있음
How to rotate some part of image?
This question is one in a long set of unclear questions which together likely form an XY problem. This is a rough summary of a ...

2년 초과 전 | 0

답변 있음
Image remapping using Pixel values
This all started by asking what was probably the wrong question to begin with https://www.mathworks.com/matlabcentral/answers/1...

2년 초과 전 | 0

답변 있음
Catenary at different height between 2 fixed points ?
Here, I think this is what you're after. This is blindly based on this answer. % input parameters x0 = [0 10]; y0 = [5 2];...

2년 초과 전 | 0

답변 있음
Need help coding pixel values for an image
See the following examples: https://www.mathworks.com/matlabcentral/answers/1923970-background-color-correction-of-a-rgb-pictur...

2년 초과 전 | 0

답변 있음
How to do image segmentation of a beam?
Oog. I'm answering with gloves on, so this is hasty. First, a preliminary solution: % we should be working with 2D data, no...

2년 초과 전 | 1

답변 있음
I have RGB image and read it. now i want the same picture half RGB and half Grayscale using Matlab.. How?
See this answer: https://www.mathworks.com/matlabcentral/answers/488338-how-to-divide-split-rgb-image-into-two-parts-and-second...

2년 초과 전 | 0

답변 있음
why can't my OCR code identify the license plate on the code?
I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1471966/images.jpeg'); % if you want to recognize ...

2년 초과 전 | 0

| 수락됨

답변 있음
Determine adjacent points in a logical matrix
This can also be done succinctly with image processing tools: % a logical array A = [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...

2년 초과 전 | 0

답변 있음
How to apply Poisson in matrix image
I have no familiarity with PyTorch or how torch.poisson() behaves exactly. That said, what you're looking for should be covered...

2년 초과 전 | 1

| 수락됨

답변 있음
How to open files .ict, .hct. a00, .h00
Here. sz = [128 128 128]; fname = 'point1.ict'; fid = fopen(fname); data = fread(fid,'*uint16'); % assuming uint fclose(f...

2년 초과 전 | 0

| 수락됨

답변 있음
How to create a colored grid of 3 matrices, representing the RGB-colors?
If you want an RGB image, why not just make an RGB image and display it using image() or imshow()? R = rand(3); G = rand(3); ...

2년 초과 전 | 1

| 수락됨

답변 있음
how to color part of a rasterplot using a color triplets array
There were multiple ways to solve this: % this emulates the inputs as described N = 10; time_series = linspace(0,10,N); time...

2년 초과 전 | 0

답변 있음
How to find number of intensity levels in an image
You can use unique() to find the number of unique gray levels if that's what you're after. Consider the following image with 8 ...

2년 초과 전 | 2

| 수락됨

답변 있음
How to make the image size of contour plot to same that or original image?
Here's a version of the same thing I posted, but as a function with a minor improvement % you have some image inpict = imread(...

2년 초과 전 | 0

답변 있음
Display an image processed in LAB channel
LAB images from rgb2lab() are not on the same scale expected of RGB images. You'll need to rescale the data appropriately if yo...

2년 초과 전 | 1

| 수락됨

답변 있음
I cannot read and display this image
That's a WEBP file, not a JPG. There are no native utilities in MATLAB that I know of that will read a WEBP. You will need to ...

2년 초과 전 | 1

| 수락됨

답변 있음
One surface is changing the color of another
Without knowing the specifics, my guess is that there is fairly significant z-difference between the ranges of values represente...

2년 초과 전 | 1

| 수락됨

답변 있음
how to divise an image with matrix rotation(same angle)
I was going to fix the code. This is how it went: % okay, get some single-channel image I = imread('cameraman.tif'); imshow(...

2년 초과 전 | 0

답변 있음
Imagesc change "background" color
If you're using MIMT, this becomes simple. Just construct the image in whole and display it. Don't try to deal with conditiona...

2년 초과 전 | 0

답변 있음
Extract part of the image and divide them into several parts
I don't know how this will be used or whether it's appropriate, but here's this thing. % the inputs inpict = imread('https://w...

2년 초과 전 | 0

답변 있음
how to create a 1,12,123,1234 pattern in a triangle
I know this is not the only one of these threads, but I'm just going to throw this here anyway. Since I don't really care about...

2년 초과 전 | 0

답변 있음
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
Instead of a giant undocumented salad of inline logic, use logical variables to clearly describe the input conditions as they pe...

2년 초과 전 | 0

답변 있음
How to add one extra channel into a RGB image
If your thermal image is RGB, then no, rgb2gray() won't work. The functions rgb2gray() and im2gray() calculate BT601 luma, whic...

2년 초과 전 | 0

답변 있음
Obtaining mean values contourf
Consider the following example % some fake data A = reshape(1:256,16,[]); A = A + 10*randn(size(A)); [min(A(:)) max(A(:))] %...

2년 초과 전 | 0

| 수락됨

답변 있음
Why "Accessing Image Sub-Regions"s array like that?
Those are literally the pixel values in the image. There is no designed purpose for the first pixel of the image to be 156. It...

2년 초과 전 | 0

답변 있음
Making color plots that are also clear in greyscale
I think the answer is as old as printed media. If you want something to appear distinct in monochrome, deal with the aspects of...

2년 초과 전 | 0

답변 있음
how to enhance the red, green and blue color within an image
This question's been nailed down for a decade, but I've been bored lately. Nothing is stopping me from adding extraneous answer...

2년 초과 전 | 0

답변 있음
How to make Matlab give different answers for different text inputs of different lengths
I figured that for multiple cases, it would be neater to use a switch-case. A = input('How do you eat your oatmeal?: ','s'); ...

2년 초과 전 | 1

답변 있음
How to Pre-allocate a 4D photo array
There are multiple problems here, but without the rest of the information, I'm going to have to assume some things. As @Chunru ...

2년 초과 전 | 1

더 보기