Beantwortet
How could I display a "circle at the bottom of the figure? And color it along the way? To show Hue angles?
The problem that I'm seeing with the answers so far is that they're not going to be projected correctly into the color space in ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can i convert a picture from normal form in this art form ?
Dead post, I know. As its original name implies, MIMT was built around the destructive conversion of referential image content...

mehr als 4 Jahre vor | 0

Beantwortet
How to replace all nan values in an image to 255 different colors
Depends what your needs are. If I assume that your image is an RGB color image to begin with, and that you want colors picked s...

mehr als 4 Jahre vor | 0

Beantwortet
Restoration of damaged lines in image processing
For a shape like that, it's pretty easy to get smooth results once you move to polar coordinates. A = imread('https://www.mathw...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Writing a vector with randi and extract the elements in another variable
This will give you a logical mask describing the location of elements within the closed interval [50 70]. You can call it what ...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
Is there any way to determine when a function was removed from MATLAB?
The current incarnation of when() with is on the FEX: https://www.mathworks.com/matlabcentral/fileexchange/97272-a-slightly-mor...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to programmatically find the number for the latest MATLAB release?
I ended up sticking with mostly the same code. I've since added persistence to avoid the network access penalty. The URL has s...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Loop to get mean and max of multiple variable arrays
Here's a couple simple examples: % let's assume all the columns are the same size % a numeric array should suffice allcars = ...

mehr als 4 Jahre vor | 0

Beantwortet
Remove pixel whose value is below given threshold
Here's another silly answer based on my last two comments. In this case, we're accepting minor local distortion in order to sif...

mehr als 4 Jahre vor | 0

Beantwortet
Angle recognition of objects in the image
This might be a start. This uses the Hough transform tools from IPT. A = imread('https://www.mathworks.com/matlabcentral/answe...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Remove pixel whose value is below given threshold
Alternatively, this is an extension from my comment above. If image content preservation is not important, the images can be re...

mehr als 4 Jahre vor | 0

Beantwortet
Remove pixel whose value is below given threshold
If you're trying to automatically crop borders off an image, you might be able to use the comments from ImageAnalyst and myself ...

mehr als 4 Jahre vor | 0

Beantwortet
color map with 3 columns of data (x,y,z)
If you're trying to work with scattered data, you can possibly use griddata() and pcolor(). N = 50; % number of data points xy...

mehr als 4 Jahre vor | 1

| akzeptiert

Beantwortet
GUI - Add ticks to slider bars and add hue color space to slider bars
Attached is a script that creates a GUI with three HSV sliders and a basic CBF template. The sliders have tick labels, but no t...

mehr als 4 Jahre vor | 1

Beantwortet
I want to measure the diameter of the circle using image.
This should be a start a = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/910160/21.jpg'); c = rgb2gr...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
convert RGB to YUV and convert YUV to RGB
I just realized that you're probably talking about YCoCg or YCoCg-R. That should be losslessly invertible (since all factors ar...

mehr als 4 Jahre vor | 1

Beantwortet
Counting the number of intersects between a circle and a binary image
If your shapes can be represented as two logical images, then the solution is to simply count the intersecting regions instead o...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
I need to add color shapes to dose distribution images
You can do this a couple different ways. One way would be to use a transparent contour object over an image. Getting alpha sup...

mehr als 4 Jahre vor | 0

Beantwortet
How can I delete 10% random Selected Index from array without changing shape in Matlab
Numeric arrays cannot have "holes" in them. If you want to omit data, you either have to replace it with some value that preven...

mehr als 4 Jahre vor | 0

Beantwortet
Loop with "for" and "if" and then a scatter with different colors
Consider the example % placeholder data x1 = rand(100,1); x2 = rand(100,1); y1 = randi([0 81],100,1); mask = y1<10; % cre...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
i want to plot a square root function
I'm assuming that this is what you were going for: x = 0:0.01:3; y = 100./sqrt(1-(2./x).^2) plot(x,y) Though note that the o...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Trying to use patch to fill between two lines but no shading due to empty double row vector?
That's because there is no x-value at that location due to its step size. See the comment on the prior question.

mehr als 4 Jahre vor | 0

Beantwortet
My assignment asks to check compatibility of input and return an empty [ ] if not compatible. One of the input argument must be a column vector. can you please kindly explain
Since you haven't said what "compatibility" entails, I'm going to assume that all you need is to test the orientation of one arg...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to change solid fill to lines for patch and set limits to patch?
You should be able to just limit the range used for drawing the patch object % V ideal y = 0:10:35000; x = 0:.01:0.9; y = 14...

mehr als 4 Jahre vor | 0

Beantwortet
How to find the coordinate defect location in image any document to refer? Please help I am fyp student in mechanical engineering
I'm going to assume that the attached image is the mask derived from x and y. [mask map] = imread('https://www.mathworks.com...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
I want to attach two images.
If the adjacent dimensions of the arrays match, they can be concatenated. A = imread('cameraman.tif'); % a picture B = imcompl...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I center the ColorBrewer colors around 0?
This doesn't have anything to do with the particular colormap. This has to do with the fact that the colorbar limits are not cen...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
Separation of rice grains . I want to separate out the grains that are darker in the image.
Segmentation might be a bit easier with a bit of a diffuser to deal with the bg. The median filter (or just downscaling the ima...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find the major/minor axis length of each grain with grain number. I am not able to display the length and area.
You haven't said what you actually want when you mention displaying the properties. I'm going to assume that some sort of text ...

mehr als 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I calculate the average HSV value of each rice grain in the main. And also how to display them with the rice grain no. ?
This is probably the same thing: https://www.mathworks.com/matlabcentral/answers/1646895-how-to-extract-color-parameters-of-eac...

mehr als 4 Jahre vor | 0

Mehr laden