Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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-...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

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

presque 3 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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.^...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

Réponse apportée
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....

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Charger plus