Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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];...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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); ...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 2

| A accepté

Réponse apportée
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(...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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(...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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(:))] %...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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'); ...

plus de 2 ans il y a | 1

Réponse apportée
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 ...

plus de 2 ans il y a | 1

Charger plus