Answered
Help with error arrays have incompatible sizes
Don't use == to do string/char comparison. Use strcmp/strcmpi, or better yet, just replace the whole if/elseif chain with a swi...

5 maanden ago | 0

Answered
IHS triangular model for RGB image
There are a few things wrong here. First, the images are not RGB. One of them is indexed color, and the other is simply a gr...

5 maanden ago | 0

Answered
I want to make airfoil on Matlab..please tell me code of this
Any old airfoil, eh? Start by drawing any plane curve. x = [89 4 4 3 3 4 4 12 12 96 96 89 89 88 88 88 88 96 NaN 58 49 49 45 45...

5 maanden ago | 2

Answered
How to change the color intensity of an image?
If you want to adjust the red and blue components as the question asked, you can do that easily enough. inpict = imread('pepp...

5 maanden ago | 0

Answered
Find the average of two images
% all GIF files are indexed color % you must read the maps [im1 map1] = imread('Im1.GIF'); [im2 map2] = imread('Im2.GIF'); ...

5 maanden ago | 0

| accepted

Answered
Multiple image thresholding and measure distance
Nothing is going to be able to automatically read the background scale from an image like that. It's also not exactly square or...

5 maanden ago | 0

Answered
How to convert flowchart to MATLAB code ?
This is what I was squatting on. It's not a literal interpretation of the flowchart, but there's no good reason to use a litera...

5 maanden ago | 0

Answered
Rotation of colormap for ellipsoid
No code was provided, so we don't know how the objects CData relates to its ZData. We don't know what OP observed or expected, ...

5 maanden ago | 0

Answered
Plotting image color values-How to crop image
Barring the potential problems of using double() instead of im2double(), I see one problem with how you're using imshow(). If ...

5 maanden ago | 1

Answered
how to auto crop a image?
I'm not sure if this is about a white border or (if that's the case) whether figure capture was the cause. That said, I'm getti...

5 maanden ago | 1

Answered
Finding antenna gain curves/functions from an image
I strongly recommend manual transcription. Trying to automagically isolate the curve from the gridlines is going to be tedious,...

5 maanden ago | 1

Answered
MATLAB code for extracting temperature value from BMP format image followed by background removal
An estimate of the colormap can be derived from the image. inpict = imread('https://www.mathworks.com/matlabcentral/answers/upl...

5 maanden ago | 0

Answered
I didn't know how to find r
Walter hinted at a symbolic approach to a tangential junk question-as-comment. I figured I'd provide an answer covering both be...

5 maanden ago | 0

Answered
Removing the background from imagesc image.
Different colormap examples: Z = im2double(imread('bbbb.png')); % background is at the bottom of the map imagesc(Z) colorm...

5 maanden ago | 0

Answered
Removing the background from imagesc image.
What are your actual goals? What do you want in the areas you "removed"? Is the background actually an image? Is the foregroun...

5 maanden ago | 0

Answered
Keyboard input is not working in Matlab GUIs on Ubuntu 18.04
As @Amy already mentioned, the broken UI elements (edit boxes, dropdowns) is a longstanding bug that is here to stay. https://w...

5 maanden ago | 2

Answered
how to get matlab code to detect a changes from 0 to 1 in a binary mask?
Depends what you mean by "find pixels where the mask goes from 1 to 0" % the mask mask = imread('tinyblobs.png'); imshow(mask...

6 maanden ago | 0

Answered
Ihave got a matlab code for patch extraction of an image. please explain the algorithm behind that code
To answer @R Sai Kiran's question: If we assume the following: the intent is to pad the tiles with white aspect ratio should ...

6 maanden ago | 0

Answered
Plot a Cuboid with a cylindrical shaped hole in 3D
I'm just going to put this here. % needed to zip attachments for the forum unzip things.zip % read the file fname = 'thing...

6 maanden ago | 0

| accepted

Answered
number of objects in images
You can only barely segment that first image using rgb2gray(). The background and foreground regions differ by as little as 1LS...

6 maanden ago | 0

| accepted

Answered
I would like to modify the code to create some gif video images from png images.
You closed the figure using close() before you tried to take a screenshot of the same figure with getframe(). Of course, it loo...

6 maanden ago | 0

Answered
How to binarize a image with low contrast in certain areas?
Here's one attempt. inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1523331/image.jpeg'); % ...

6 maanden ago | 0

Answered
creating video fire effect from perlin noise
If we don't care about efficiency, we can just create an excess of noise and sample it. % Set parameters numFrames = 100; % ...

6 maanden ago | 0

Answered
How to transparently superimpose two images with two colorbars
Here's a rudimentary example using lines/markers to make the overlay. I'm not sure how exactly you want it shaped, so I assumed...

6 maanden ago | 0

Answered
extracting lat/lon from tif file using matlab
I never really use mapping stuff, so take this with a grain of salt. fname = 'NA_CONUS_border.tif'; [tifImage, R] = geotiffrea...

6 maanden ago | 0

Answered
Blurry figures when concatenating images
First, don't save line plots as JPG. It's unnecessarily destructive and it usually results in a bigger file for literally no be...

6 maanden ago | 1

| accepted

Answered
How to extract information from a 'true color' image and interpolate?
As I said, the given image is the weighted sum of two things: % compositeimage = alpha*pseudocolorimage + (1-alpha)*grayscaleim...

6 maanden ago | 0

| accepted

Answered
How Do I Create a Mean Filtered Image using For Loops?
There are a bunch of examples of basic sliding window (and probably blockwise) filters on the forum. I don't have my bookmarks ...

6 maanden ago | 1

Answered
how to create diamond of 101x101 in matlab
Here's one way that doesn't require IPT strel(), though chances are this wouldn't have worked in late 2016 unless OP was running...

6 maanden ago | 0

Answered
How can I dilate different parts of an image with different structuring elements?
You can do it by dilation if you want, but you'd have to process each object independently. Consider the following image. ...

6 maanden ago | 0

Load more