Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
[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...

más de 3 años hace | 1

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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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"....

más de 3 años hace | 0

Respondida
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; ...

más de 3 años hace | 0

| aceptada

Respondida
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 ...

más de 3 años hace | 0

| aceptada

Respondida
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(). ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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; ...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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. % ...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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 ...

más de 3 años hace | 0

Respondida
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,:));

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Cargar más