Risposto
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 ...

quasi 3 anni fa | 0

Risposto
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 ...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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];...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 1

Risposto
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...

quasi 3 anni fa | 0

Risposto
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 ...

quasi 3 anni fa | 0

| accettato

Risposto
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 ...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 1

| accettato

Risposto
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...

quasi 3 anni fa | 0

| accettato

Risposto
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); ...

quasi 3 anni fa | 1

| accettato

Risposto
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...

quasi 3 anni fa | 0

Risposto
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 ...

quasi 3 anni fa | 2

| accettato

Risposto
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(...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 1

| accettato

Risposto
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 ...

quasi 3 anni fa | 1

| accettato

Risposto
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...

quasi 3 anni fa | 1

| accettato

Risposto
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(...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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(:))] %...

quasi 3 anni fa | 0

| accettato

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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...

quasi 3 anni fa | 0

Risposto
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'); ...

quasi 3 anni fa | 1

Risposto
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 ...

quasi 3 anni fa | 1

Carica altro