Answered
How to make the white background whiter and black prints blacker and remove the highlight color (green) in an image?
I've seen this post before and I always pass it up because it's such a bad image. The image content has been pretty much destr...

3 years ago | 0

Answered
How can I process the image and extract the spacing between individuals dots in a row ?
Do you need row spacing, or do you simply need the spacing between each blob and its neighbors? https://www.mathworks.com/matla...

3 years ago | 0

Answered
Plotting a contour plot on top of an image?
Assuming that the overlay is an actual contour() object: From @Abel Babu's links, we find this answer from Will Grant, which sh...

3 years ago | 0

Answered
How can I create a function that will mass reveal connect zeros like in the game Minesweeper?
See the related simplified examples as applied to a minesweeper clone. https://www.mathworks.com/matlabcentral/answers/1470416-...

3 years ago | 0

Answered
Need a code to create a plot in MATLAB which indicates a BMI chart
Create a contour plot. You can either use contour() or contourf(), depending on whether you want it filled or not. % Define we...

3 years ago | 0

| accepted

Answered
Undefined function or variable 'rangeres2bw'.
You can see from the documentation page for rangeres2bw() that it was first available in R2021a.

3 years ago | 2

| accepted

Answered
Match the y-axis color with legend color in multiple y axis plot?
The ruler color can be set using 'ycolor'. When you use legend(), explicitly give it a vector of object handles as the first ar...

3 years ago | 0

| accepted

Answered
counting pixel in contour function.
If you're trying to find the length of the curve defined by a set of xy coordinates, one way would be to do: % a binary image ...

3 years ago | 1

| accepted

Answered
I'd like to give my graph background color based on a string value
Here's one way using basic colormapping and an image object as an underlay. % fake data x = linspace(0,1,100); y = [x.^2; x.^...

3 years ago | 1

| accepted

Answered
Change values above bar
This should work with positive or negative values. y = [5 10 15 100 150 200]; %y = [y -y]; hb = bar(y,0.4); xtips = hb.XEn...

3 years ago | 0

Answered
Display images instead of numbers in a Matrix.
An example using montage()/imtile(). % the images type1 = imread('F1.png'); % 100x70 type2 = imread('F2.png'); % 70x100 ...

3 years ago | 1

Answered
How to remove white borders/space from an RGB image?
If you have some arbitrarily-scaled data, you need to map it however you mapped it when you plotted it. There's no reason to as...

3 years ago | 0

Answered
Color transfer of the source image according to the target image
I am not familiar with the code in question, but if you want the output to have the same brightness as the input, then force it ...

3 years ago | 0

| accepted

Answered
How to combine multiple true color images into a composite image?
If you're stuck doing this by image processing, here's one way. basepath = '16 truecolor png files'; % the folder where the fil...

3 years ago | 2

| accepted

Answered
insert text into videos from 4 different folders containing *png files
There are a number of other tools on the File Exchange for inserting text into images or for creating text images which can then...

3 years ago | 0

Answered
Why my output images become white?
Your images are incorrectly-scaled for their class. Using double() only casts the (ostensibly integer-class) image to double, b...

3 years ago | 0

| accepted

Answered
how can convert 256x256 gray image to 6 grayscale?
You haven't mentioned at all how you want to quantize the image. I imagine that the entropy depends on that. % assuming input ...

3 years ago | 0

Answered
Taking a single cycle from an image
I'm going to pretend that this won't just explode the moment it's fed a different crusty JPG. Assuming the following: the im...

3 years ago | 0

| accepted

Answered
Im trying to slice an image and switch its quadrants so that I switch the bottom right quadrant and the top left quadrant and the bottom left quadrant with the top right quad
img = imread('peppers.png'); topLeft = img(1:end/2,1:end/2,:); % specify enough dimensions topRight = img(1:end/2,end/2+1:en...

3 years ago | 0

Answered
Create images in B/W, grayscale, RGB
For an example of creating "pixel art" like the first image, see this answer: https://www.mathworks.com/matlabcentral/answers/1...

3 years ago | 0

Answered
image contrast brightness adjust
The second argument to implay() is the framerate in FPS. It's a scalar. I have no idea why you're passing it a vector includin...

3 years ago | 0

| accepted

Answered
How to add Rician noise to an image?
I don't have a reference to test against, but just looking around it seems right. I'm assuming that the goal is to literally tr...

3 years ago | 0

Answered
Detect all rectangles from an image
The image you have is messed up somehow. The tiles are actually not consistently sized due to whatever display aliasing is goin...

3 years ago | 1

| accepted

Answered
imshow displays blank figure
Without knowing what the image is or how exactly the figure appears, I'm going to go out on a limb and guess that it's possibly ...

3 years ago | 0

Answered
Perform a web search through Matlab and get back the results
There are probably better ways, but here's one example I pulled from something else I wrote. This relies on Google's JSON API....

3 years ago | 0

Answered
How to find the most used word in a text?
Define "word". Once you have defined "word" and have implemented a means to split a block of text into said words, then the res...

3 years ago | 1

Answered
How can I restore image if I need to use command "interp2"
I'm just going to put this here. % the image inpict = imread('kithat.jpg'); % why JPG for a small grayscale image? inpict = i...

3 years ago | 0

Answered
Contour label properties are a mess
Well, this isn't really an answer, since it's not really a question, but this may be related workaround in part (the manual mode...

3 years ago | 1

| accepted

Answered
I have some thermal images and i need to find the maximum temperature each images and locate that pixel in the image
There are a number of demos for how to do this. I'm pretty sure you've seen some, so I'm assuming that you know the limitations...

3 years ago | 0

Answered
How can I use histogram equalization to enhance the quality of a color image(flower.jpg)? Draw a flowchart & write a matlab program for this.
Define "enhance the quality". There's no reason to expect that leveling the histogram will generally improve the visual appeara...

3 years ago | 0

Load more