답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 1

답변 있음
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...

3년 초과 전 | 0

답변 있음
[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...

3년 초과 전 | 1

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

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 1

| 수락됨

답변 있음
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 ...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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"....

3년 초과 전 | 0

답변 있음
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; ...

3년 초과 전 | 0

| 수락됨

답변 있음
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 ...

3년 초과 전 | 0

| 수락됨

답변 있음
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(). ...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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; ...

3년 초과 전 | 1

| 수락됨

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

답변 있음
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. % ...

3년 초과 전 | 1

| 수락됨

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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 ...

3년 초과 전 | 0

답변 있음
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,:));

3년 초과 전 | 0

답변 있음
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...

3년 초과 전 | 0

| 수락됨

답변 있음
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...

3년 초과 전 | 0

더 보기