Answered
how does this code make sense?
I'm not really sure if the answer you're getting is the answer you want or if you just want an explanation of why you're getting...

4 years ago | 0

| accepted

Answered
How to create a double scale of units in figures?
Since R2019b, you should be able to use a method similar to this example to create the secondary x and y axes: https://www.math...

4 years ago | 0

Answered
How to create an RGB image?
If all you're after is a uniform colored field, it can be rather simple. You don't have to get stuck trying to intuit your way ...

4 years ago | 1

Answered
How to create rgb image in matlab?
I figure if hundreds of people come here every month looking for the answer to an incredibly vague question, it's about time som...

4 years ago | 3

Answered
How to make salt pepper noise own code
This is the way that MIMT imnoiseFB() does it when in fallback mode. This will replicate the behavior of IPT imnoise(). Note t...

4 years ago | 0

Answered
Image processing glass quality control, my code isn't working good
I'm going to take a shot in the dark and assume that the image difference is such that the result is getting truncated. Normall...

4 years ago | 0

Answered
How can I separate objects with one pixel connected after bwlabel
Depending on what the rest of the blobs look like, this may be one way. % fix the image and return it to what I assume the orig...

4 years ago | 1

| accepted

Answered
'jet' countour plot over grayscale image
This is easier than everyone is making it. You can avoid the necessity for two colormaps by simply expanding the single-channel...

4 years ago | 1

Answered
How to use logic operators in Image Processing
This should be a start. % read the image A = imread('cameraman.tif'); % quantize intensity G2 = bitand(A,uint8(128)); G...

4 years ago | 1

Answered
how to make yellowish image
What's being performed here is a 'screen' type blend between the image and a color overlay. I'm sure there's an unspoken proble...

4 years ago | 0

Answered
I convolve two images but doesn't work can you help me.
There is no convolution happening here. You didn't include either image, so I don't know if a mismatch of channels is also caus...

4 years ago | 0

Answered
How can i display I of YIQ from a jpg image?
The assignment text doesn't make any sense. The logical AND of Y and I or Y and Q isn't anything useful -- and it's certainly no...

4 years ago | 1

| accepted

Answered
How to Overlap two maps extracted from two methods?
Depending on what your background image is and how you are going to locate the images atop each other, this may be a start: loa...

4 years ago | 0

| accepted

Answered
how can i check that my image is rgb
Everyone neglects images with alpha. I doubt anyone really cares, since nothing in MATLAB/IPT naturally produces RGBA images or...

4 years ago | 0

Answered
Overlay image on top of image
As always, "overlay" can mean a number of things. For the purposes described, I'm assuming that this is a basic image blending/...

4 years ago | 4

Answered
how to create a string variable with specified color?
A string or char doesn't have a color. If you're talking about putting a text object in a figure, you could do that. mywords...

4 years ago | 0

| accepted

Answered
Matching histogram between an image with reference histogram from excel data
If you have an image and you need it to match a histogram, use histeq(). That's what imhistmatch() does internally. It simply ...

4 years ago | 0

Answered
How to make an image straightener like that of cam scanner app?
Dead post, I know, but you can use image transformation tools like imwarp() to do the perspective correction. A = imread('htt...

4 years ago | 4

Answered
Edge detection using Convolution
What exactly is throwing that error? That's not an error from conv2(). Is this a part of something that's being auto-graded? ...

4 years ago | 0

Answered
How to plot a dot as a sphere like those in OriginLab?
There isn't such an option for plot() or scatter() objects: https://www.mathworks.com/help/matlab/creating_plots/specify-line-a...

4 years ago | 0

| accepted

Answered
How to repair the vertical lines ?
Not sure what features of the image are important, so I'll just throw this simple approach out there. A = imread('https://www...

4 years ago | 1

| accepted

Answered
Using 2 nested for loops: Evaluate each pixel's R,G,B value : If the pixel's R value is greater than the user's threshold value for Red, set that value = to threshold instead
In practice you wouldn't use a loop at all. A = imread('peppers.png'); maxthresh = uint8([100 150 200]); % [R G B] B = mi...

4 years ago | 0

| accepted

Answered
Color map from green to red
This is how one might go about getting the exact colormap shown in the image and make a symmetric version of it. A = imread('gy...

4 years ago | 1

Answered
I have a jpg image of a wetland using RGN filter and would like to determine the % "colour" from this image. Any ideas? I'm very much a novice.... Thanks!
This isn't too far from what Yanqi Liu posted, but I'll throw this out there. A = imread('marsh.jpg'); A = im2double(A); [R G...

4 years ago | 0

| accepted

Answered
Is it possible to resize image without changing its total number of pixels?
Maybe something like: A = imread('cameraman.tif'); [h w] = size(A); % [256 256] imshow(A,'xdata',[1 w]/2,'ydata',[1 h]/2) ...

4 years ago | 1

Answered
Increase the brightness of an image
While simple addition is probably the best answer, there are also various tools that may be used to accomplish simple adjustment...

4 years ago | 0

Answered
how to convert grayscale image to RGB image
Depending on what the goals are, there are various ways to interpret the question. The following link includes demonstrations o...

4 years ago | 0

Answered
convert grayscale to rgb
Depending on what the goals are, there are various ways to interpret the question. The following link includes demonstrations o...

4 years ago | 0

Answered
How to set the hue and saturation value in hsv color model.
I doubt this question needs to be solved anymore, but it brings up an issue that's easy to miss. In general, when someone ask...

4 years ago | 0

Answered
How do I specify the color data as numeric or logical value?
I'm going to have to assume that freq or 1./freq are complex-valued. The arguments to image()/imagesc() need to be real-valued....

4 years ago | 0

Load more