Answered
Calculating Similarity between a single pixel and a surrounding region
Depends what you mean by 'similarity'. If you just want the mean DE between a pixel and its neighbors? % read the image inpic...

2 years ago | 0

Answered
how to change the background color of an image from black to white
This is another lesson in how to make sure nobody bothers answering what might appear to be a simple question. First, it shou...

2 years ago | 0

Answered
Moving Standard Deviation issues with NaN values (i.e., Stdfilt). Alternatives and workarounds?
IPT stdfilt() doesn't behave as you describe in any version I've tested. % a float array with a 10x10 NaN block A = magic(130)...

2 years ago | 0

Answered
why is the image blurred after rgb to hsi conversion?
The part of the question that nobody answered is "why is it blurry?". The answer is simple. You're looking at a JPG. The loss...

2 years ago | 0

Answered
matlab grid problem?
To set the data aspect ratio to unity set axis equal You can also check out the other options for the function axis()

2 years ago | 0

| accepted

Answered
How to measure the elongation, rectangularity, circularity, solidity, compactness, and area of the red contour?
If you want to use image processing to solve this sort of problem, that's fine, but don't start with a junk screenshot. Back u...

2 years ago | 0

Answered
How to get pixels per millimeter from image of a scale
Why bother with all that for one image? % an image inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_f...

2 years ago | 0

Answered
How to make the color gradient gradual. In the plot
I'm going to ignore the fact that using a smooth colorbar with discrete-valued data makes the plot unreadable. If you just want...

2 years ago | 0

| accepted

Answered
Identify rows of a matrix, which contain 0's, where there are 1's in an array.
Putting indices in the variable names only makes everything worse. FSM = [0 1 0 1 1 1 0 0 0 0 0 0; 0 1 0 1 0 0 1 1 0...

2 years ago | 0

Answered
Writing tiff file with multi channel and slices
It's doing exactly what you're telling it to do. You have a stack of size [H W C F]. You're splitting the stack into C*F indiv...

2 years ago | 1

| accepted

Answered
How can I make a specific color of an image transparent?
You already have a mask, so I'm not concerned with how to create a mask. As usual, the MIMT way is the easy and universal way. ...

2 years ago | 0

Answered
How to find out area under the curved shape of the attached figure?
It's going to be up to you to define where the curve boundary is. It's not clear in concept or in terms of available contrast. ...

2 years ago | 0

Answered
Similarity between gaussian noise image and original image
This happens because the output of imnoise() is clamped to the dynamic range expected of the output class -- even for floating-p...

2 years ago | 0

Answered
3 images fused into RGB placed upon one another
I can only assume that things have been edited, because as it stands, there isn't really a question. Since it's accepted, I'm g...

2 years ago | 0

Answered
Overlaying Two Binary Images with Two Separate Colors
It wasn't an option in R2010a, but I think imfuse() is the expedient answer in modern contexts. As much as I complain about its...

2 years ago | 0

Answered
Make the colours of my graph continuous
There's nothing to blur, because you're not creating a raster image. The only raster image is the screenshot, and blurring a sc...

2 years ago | 0

| accepted

Answered
xcorr results: c written in long format, lags in wide format
I don't see it documented anywhere, but lags is always a row vector, regardless of the orientation of the input. If you want it...

2 years ago | 0

| accepted

Answered
how to get one shape out of multiple shapes
patch() doesn't create a file. If you created a file somehow, nobody knows how you did it. I'm not sure where this is going,...

2 years ago | 0

| accepted

Answered
Image Compression Algorithm Error
Your problem is a matter of trying to address the pages of an ND array using a mix of 2D logical addressing and subscript addres...

2 years ago | 0

Answered
attach variabe in image
If you want to add labels to a figure, what's wrong with text() or annotation()? If you want to add text directly to an image...

2 years ago | 2

Answered
How to find the minimum difference between the 3 elements of a vector in app designer?
I take this to mean the three elements of X with the smallest extreme spread. I don't see that pdist2() would work for that. T...

2 years ago | 1

| accepted

Answered
how can i blur an image background only
Using basic tools: % an image (RGB, uint8) inpict = imread('peppers.png'); imshow(inpict,'border','tight') % a mask which se...

2 years ago | 0

Answered
Replication of a colorbar in MatLab
I just reconstructed it from the image. See the attached file. Z = peaks(100); imagesc(Z) colorbar colormap(orangeaqua(25...

2 years ago | 1

| accepted

Answered
you need to use ascii code too
I fixed the improper concatenation and bad inputs to bar() Program_Pr11('text.rtf.fakeextension.txt') Of course, the bar label...

2 years ago | 0

Answered
Binary Image from 2D plot
One way would be to use poly2mask(), but bear in mind that your coordinate space changes. That may complicate the expense of te...

2 years ago | 0

Answered
Overlay two images using transparency
How would I do it? If the goal is to produce a raster image as output, and you don't need other corresponding graphics objects ...

2 years ago | 0

Answered
Is there a variant of nlfilter for color images?
No, there's not. As far as I'm concerned, nlfilter() is usually not worth using. It's slow, it's crippled by its lack of edge ...

2 years ago | 0

| accepted

Answered
imwrite result of viscircles instead of creategraphic
Viscircles() does not create raster image data. The only way to capture its output is as you say, a screenshot. I see three op...

2 years ago | 0

| accepted

Answered
Blend Red,Blue,Green squares
See also: https://www.mathworks.com/matlabcentral/answers/1681419-overlapping-coloured-circles-rgb-circles#answer_927789 https...

2 years ago | 0

Answered
How to generate an RGB image from a 8-bit greyscale image that has an uneven background?
I'm not sure where this is going, but maybe this is a start. % read the image inpict = imread('https://www.mathworks.com/mat...

2 years ago | 0

| accepted

Load more