Réponse apportée
Splitting a color image into sub-images only displays the yellow color
This is an issue of data class and scale. You're (implicitly) preallocating your output to a floating point class. Your input ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Shrink image without using imresize
Imresize() is currently available in the base toolbox, so you don't need IPT anymore. This change occurred somewhere after R201...

plus de 3 ans il y a | 0

Réponse apportée
I have x,y value and they form a polyline ,how can i find the slope of each line without putting any manual efforts?
If you have a polyline and want the slope or angle of each segment, consider the simple example: % vertices of a polyline (this...

plus de 3 ans il y a | 0

Réponse apportée
how to convert cell vector to char vector?
If there's little control over what's in the cell array, here's one way. This can probably be simplified. C = {1509; 1803; 'V2...

plus de 3 ans il y a | 0

Réponse apportée
Adding an image/chart as plot background
Here's one cheap way. You'll have to crop the image down. [inpict map] = imread('robertson_cropped.png'); inpict = ind2rgb(in...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Index in position 1 exceeds array bounds (must not exceed 1)
It's unclear why you'd want to plot a bunch of constants, but this is apparently the same as what you're trying to do. T = 24; ...

plus de 3 ans il y a | 0

Réponse apportée
Circle with Alternating coloured segments
Here's one example. I'm sure this can be simplified. It's flexible enough that you can adapt it for different standard wheel c...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Image quality loss when importing?
Use the recommended syntax for indexed images. [inpict map] = imread('MRI-brain-tumor-image.png'); imshow(inpict,map); The ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Issue with importing coloured image into MATLAB
@Image Analyst is right. The easiest way to know what's wrong is to attach an example of the image in question and show how you...

plus de 3 ans il y a | 1

Réponse apportée
How can I set the values of matrix in interval <a, b>?
Start with: m = 500; n = 500; rrange = [4 9]; mn = 8; vr = 3; % uniform distribution with a specified range Ru = rran...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I save the image for the last part code?
You don't. The output of regionprops() is a struct containing the specified object properties. It doesn't even make conceptual...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Plot in 3D isolines from 2D image
Or perhaps [x y z] = peaks(50); hs = surf(x,y,z); hold on hs.EdgeAlpha = 0.5; [~,hc] = contour3(x,y,z); hc.LineWidth = ...

plus de 3 ans il y a | 0

Réponse apportée
How do you create a test image containing a ramp edge?
Here's one way. outpict = zeros(1,150,'uint8'); % a blank vector outpict(50:99) = linspace(0,128,50); % add a linear ramp in...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to dim a picture in matlab
See the answer to the same question here: https://www.mathworks.com/matlabcentral/answers/159435-dimming-an-image-with-a-new-ma...

plus de 3 ans il y a | 0

Réponse apportée
Dimming an Image with a new max?
The intent seems terribly obvious to me. OP wants an image "reduced to a new maximum", and data truncation is specifically desc...

plus de 3 ans il y a | 0

Réponse apportée
How do i find the RGB values of color image in range 1 to 255
I want to find the RGB color at/around a specific location in an image That can be done, but it depends how you want to select ...

plus de 3 ans il y a | 0

Réponse apportée
Rotate an image without having a deformation
From the documentation: B = imrotate(A,ANGLE,METHOD,BBOX) rotates image A, where BBOX specifies the size of the output...

plus de 3 ans il y a | 0

Réponse apportée
How to apply a mask only on saturation in a hsv image
It's not at all clear what the goals even were, but considering that other people are looking at this question and upvoting it, ...

plus de 3 ans il y a | 0

Réponse apportée
how to remove the pixels under the curve on image
If you're already using drawPolygon(), use it to create a mask directly by either right-clicking on the ROI or by using createMa...

plus de 3 ans il y a | 0

Réponse apportée
I have three RGB values,i want to know color of this RGB values,how can i do this
I have no idea what's going on here either, but I can guess. If you want a color name, then you can use Stephen's colornames()...

plus de 3 ans il y a | 1

Réponse apportée
How can I place labels on the end of my line plots?
You can use text(). You might want to adjust things a bit to help with readability. for r = 1:1:2 for a = [0.1 0.2 0.5 0....

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
pleasee please i need help with this code in app designer
The character 'a' isn't valid data for plot(). You might mean plot(app.UIAxes,a) ... but passing an image to plot() isn't lik...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Shift a square matrix along a bigger square matrix by one
See either imfilter() or conv2(). If you're forced to do it manually, then there are many examples of sliding window filter...

plus de 3 ans il y a | 0

Réponse apportée
I am getting an error in line 4 " myproj('project2.m" how do I fix this?
What Walter says is correct. I'm not going to guess what you meant, but the character it says isn't valid isn't a valid charact...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Create an alternating matrix
There are many ways. Here's one. % parameters st = 5; ev = 20; A = [0 kron(st:st:ev,[1 -1])] Here's another: B = repmat...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
so i have this line code and this error pops up can anyone plz help me fix it and thank you in advance
When given an RGB image, imadjust() will accept input and output levels specified either as a 2-element vector (same levels for ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to add different colors in particular rows and columns?
A numeric array doesn't have a color. The numbers can represent colors, but the array itself has no color properties. Even if ...

plus de 3 ans il y a | 0

Réponse apportée
Determining Manual ROI from a graph (not image)
That's what the data brush tool is for. https://www.mathworks.com/help/matlab/ref/matlab.graphics.interaction.internal.brush.ht...

plus de 3 ans il y a | 1

Réponse apportée
How to take the color grade from one image and apply it to another?
The paper that @Image Analyst linked is good, but I haven't seen any MATLAB implementation. You're free to post it on the File ...

plus de 3 ans il y a | 1

Charger plus