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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

Mehr laden