Réponse apportée
imread corruption
All GIF files are indexed-color images. If you're not reading the colormap, the array you're looking at is the index array. It...

plus de 3 ans il y a | 0

Réponse apportée
Simple contrast adjustment
If you're working with uint8, then all the pixel values are within [0 255]. The moment you try to do 0.9/im2(x,y), you end up w...

plus de 3 ans il y a | 0

Réponse apportée
Converting multiple lines into separate equations from jpeg?
I've played with Grabit and a few other transcription tools, but the view controls are universally cumbersome and buggy. You co...

plus de 3 ans il y a | 1

Réponse apportée
Control the saturation of an image
Let's assume that the goal is as follows. User has three RGB images. From two of the images, the hue and saturation content (r...

plus de 3 ans il y a | 0

Réponse apportée
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
I've been spending a lot of time browsing old content and making use of the RHS "See Also" related forum links ... and I think t...

plus de 3 ans il y a | 1

Réponse apportée
Stretch the middle of image
You could do this literally as the question describes inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded...

plus de 3 ans il y a | 0

Réponse apportée
How to create a blue color gradient
There are various ways to make a gradient image. I'm going to ignore specific colors, as it should be fairly obvious how to ada...

plus de 3 ans il y a | 0

Réponse apportée
creating an image convolution code
Here's a start. % this image is class 'uint8' A = imread('cameraman.tif'); % for the math to work, you need it to be floating...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Index an array using specific indices
Try % some test vectors x = randi([0 1],1,20) s = randi([1 numel(x)],1,10) % this is the content selected by s x(s) % and ...

plus de 3 ans il y a | 0

Réponse apportée
Generating gifs that replay and controlling FPS in MATLAB
I don't have exportgraphics(), so I can't experiment with it, and I'm not sure how you're using it. Off the top of my head, I...

plus de 3 ans il y a | 0

Réponse apportée
Wave effect over an image in matlab
Both "effect" and "overlay" are terribly ambiguous. Literally anything that influences an image could be called be an "effect"....

plus de 3 ans il y a | 0

Réponse apportée
How to remove image background in Matlab
Here is one simplistic example. % an image A = imread('coins.png'); % basic thresholding to select objects mk = A>100; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I convert a svg file to matrix or image in Matlab?
If you have raster images embedded in an SVG file, you may be able to extract them something like this: % filename of svg file ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to put silhouettes together and compare without covering
If you want to put the two source images in a montage, then those should be the ones that you specify in the call to montage(). ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to annotate border around original RGB image
This is actually a good case for imoverlay(). The one thing imoverlay() does is render a binary mask as a colored overlay on an...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I make a filter with the Lorentzian peak to use in imfilter?
I'm not familiar with the distribution or its application here, but here's a start. % parameters gam = 7; fkradius = 20; ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to vectorize ?
You're overwriting the original values, so subsequent tests on the array will produce unexpected matches. Both 0 and 1 are <500...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Need to count the white dots shown attached. How do I count the white pixel dots
Something like this would be a start I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1177663/ring.jp...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Adjust the color bar of all thermal images to be consistent
Unless you have the underlying thermal data, you're going to have to convert the false-color image back into a grayscale thermal...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Trying to display the segmentation result in the same type as of the original image.
I think you might be asking how to programmatically cast and scale an image to a specific class from any class. If that's the c...

plus de 3 ans il y a | 0

Réponse apportée
How to create a Binary image from two columns of raw data
This is similar to the prior answer, but in this case, we need to deal with scaling both x and y data. load matlab.mat outsi...

plus de 3 ans il y a | 0

Réponse apportée
I cannot read a PNG figure of the type BasexHeight logical
The error that pic2points() gives you tells you why. Expected input number 1, I, to be one of these types: uint8, uint16, do...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to convert multiple images from RGB to Grayscale or Index, Grayscale to RGB or Index and Index to RGB orGrayscale having a single function in use?
Since it's up to me to decide what you want, this must be it. pathlist = {'peppers.png'; 'cameraman.tif'; 'canoe.tif'}; ou...

plus de 3 ans il y a | 0

Réponse apportée
Interpolation of missing matrix element
I'm sure there are multiple ways, and interpolation may depend on whether this is 2D data or a bunch of independent rows of data...

plus de 3 ans il y a | 0

Réponse apportée
How to convert a gray scale image of thermal camera to colored one?
Working around the fact that the grayscale image is a screenshot, this is basically just a matter of finding the colormap. % ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Problem on detect ellipse in the image with many shapes inside
The answers on this post by ImageAnalyst and myself include attempts to identify ellipses. The example I gave seems fine iden...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
use Plot instead of rectangle
Given the same position vector that would be used for rectangle(): % the position parameter used by rectangle() pos = [0 0 20 ...

plus de 3 ans il y a | 0

Réponse apportée
For Loop to calculate Convhull & Polyarea
You're trying to find the convex hull of a single point instead of the whole row. CHull = convhull(Xdata(i,:), YData(j,:));

plus de 3 ans il y a | 0

Réponse apportée
force colour of pixels with certain values to black when using a colormap with imagesc
If you're using imagesc(), image(), or imshow(), you can use the 'alphadata' property: % we have some data that spans from 0 be...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I appreciate any advice or method to solve this problem. Preferably if you can guide me with the code to execute. Greetings and thanks
Regarding the RGB/gray issues. The older rgb2gray() tool is oblivious and will simply fail if fed an image that's already singl...

plus de 3 ans il y a | 0

Charger plus