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

8 månader ago | 0

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

8 månader ago | 2

| accepted

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

8 månader ago | 0

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

8 månader ago | 1

| accepted

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

8 månader ago | 1

| accepted

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

8 månader ago | 1

| accepted

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

| accepted

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 0

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

8 månader ago | 1

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

8 månader ago | 1

Question


Is there any means of searching for content within MATLAB Onramp?
I see lots of threads full of incomplete random copypasted chunks of text from Onramp. I'm content to assume this is just anoth...

9 månader ago | 0 answers | 0

0

answers

Answered
How to match the colors in the colorbars across two plots such that the datapoints can be inferred consistently?
This depends whether you can rely on the range of the second dataset being smaller than (and within) the range of the second dat...

9 månader ago | 0

Answered
drying to scale down image by factor of 2 using loops
I'm going to generalize a little bit. Scaling factor can be set as an internal parameter. The code supports any number of imag...

9 månader ago | 0

Answered
How to add color to a grayscale image based on a colormap from a color photo?
Well, it's Sunday night. The forum is sleeping and I'm bored. I might as well pretend that this thread needs another answer. ...

9 månader ago | 0

Answered
colour variation (transparency) on the overlapping bars of 2 bar charts
The transparency has no effect because there's nothing behind it. You're stacking the bars end-to-end, not on top of each other...

9 månader ago | 0

| accepted

Answered
Getting inexistent files using dir function
Those are hidden files. It's unknown why they're hidden. Perhaps they are temporary or autosave files that exist because the f...

9 månader ago | 0

| accepted

Answered
How can I divide a whole circle into two sectors at an angle?
If you're dealing with an image that's not necessarily binarized (as in the given example), there are some considerations. If w...

9 månader ago | 1

| accepted

Answered
Getting the Wrong Output While Using Image Batch Processor
If the array called image is a matrix, the output from this operation will be a vector. black_pixels = sum(image == 0); While ...

9 månader ago | 0

Answered
how to apply sauvola threshold in subtracting
No thresholding has been applied to that image. It's had a slight gamma adjustment and then it's been inverted. A = imread('...

9 månader ago | 0

Answered
Edge Detection in a 2D Matrix
Consider the example: % a logical image mask = imread('tinyblobs.png'); imshow(mask) % generate the perimeter image paddedm...

9 månader ago | 0

| accepted

Answered
Calculate power of each area
I'm just going to throw this out there. % this image has points marked manually inpict = imread('bbbbbb.png'); % data ran...

9 månader ago | 0

Answered
Elliptical crop of an image to get average pixel value within the region
If you're manually placing things, you can use the ROI tools such as drawellipse() and drawcircle() to create a mask. % an exam...

9 månader ago | 0

| accepted

Load more