Réponse apportée
Error using actual and detected edge image sizes must be same error.
Your inputs are JPG. Most JPGs will not be single-channel. On one side of that equality test, this is what happens: rgbpict =...

environ 3 ans il y a | 0

Réponse apportée
How do I measure distances in an Image
You say you want the maximum distance along the x and y axis, but what you drew is something else. So which do you want? You c...

environ 3 ans il y a | 0

Réponse apportée
Conversion of (129x7 complex double) to an Image
Are you sure you don't want to just save a graphical representation (i.e. a plot)? % some fake test signal fs = 1000; t = 0:1...

environ 3 ans il y a | 1

Réponse apportée
How to sort rows of a 2D array based on another array
Here's one example. I'm sure there are others. A = [1 2 3;2 1 3;3 2 1]; B = [0 1 2;0 1 2;0 1 2]; % get sorting and size in...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to discretize the color in contour bar at smallest possible range?
Since you didn't specify the levels or even the number of levels in the call to contourf(), there is no reason to suspect that t...

environ 3 ans il y a | 0

Réponse apportée
Error in imnoise>ParseInputs
We know that imread() will only return an array of class 'logical', 'uint8', or 'uint16' when given a PNG image. Since only a s...

environ 3 ans il y a | 0

Réponse apportée
i have an ultrasound image i want to remove the labeles on the image by using y=mx+b line to convert the pixeles above the line to black.how can i do it?
There are a couple things going on here. filename = '181.png'; img = imread(filename); img = im2gray(img); % need to work on ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Could someone help me to import individual jpeg images embedded in a gif image into each slide in a PowerPoint file? I use exportToPPTX.
As far as I know, the bug mentioned in the first link still exists, and the only solutions are those described at the end of the...

environ 3 ans il y a | 3

Réponse apportée
color all pixels in an image black except white pixels
Presuming that "white" is [255 255 255] within the context of a uint8 RGB image: inpict = imread('https://www.mathworks.com/mat...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to display a message as flashing and in my desired color and font size?
If you want it in the command window, then your options are severely limited, and the rate at which you can "flash" will be limi...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How do I extract table on a web page into a MATLAB table?
Everything on that page is dynamic content generated by scripts. That information isn't part of the page source. Unless they h...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to plot This graph in matlab?
1.00E-2 is shorthand for scientific notation 1.00*10^-2. % define x x = 1.0:0.05:3.0; % YData as row vectors in a matrix y...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
oblate and prolate figs
See ellipsoid() r = [1 1 2]; % radius [x y z] c = [0 0 0]; % center [x y z] npoints = 30; % if no output arguments are req...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
issue with colormap (colorcube)
From the R2019b release notes: Predefined colormaps have 256 colors by default Behavior change The predefined colormaps, such...

environ 3 ans il y a | 2

Réponse apportée
find Center pixel to maximum distance
I'm going to ignore how to calculate the distance array, and just focus on the task that the tagging implies. If the goal is to...

environ 3 ans il y a | 0

Réponse apportée
I tried to generate a sequence with a specific interval, but the output skips some intervals.
I missed the comparison. You're dealing with floating-point numbers. You can expect exact equality tests to fail due to roun...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How can I add timer to a stack of image and play it as a video with timer going on in the corner of it?
See this thread https://www.mathworks.com/matlabcentral/answers/101413-how-can-i-add-text-to-an-image-and-make-the-text-become-...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
What is the range of L (lightness) when plotting HSL bi-cone colour space?
In most implementations , L will be from 0 to 1, so yeah if you wanted to visualize it at uniform scale, it would be a squat bic...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Size doesn't match Value?
You're finding the size of the char vector, not the variable. myvariable = rand(100,1); size(myvariable) % this is a 100x1 n...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
How to add a portion of image to another image
Hmm. That's a very good question. How would one accomplish an ill-defined image composition? Well, the answer is easy. You c...

environ 3 ans il y a | 0

Réponse apportée
Removing neighbours that are too close from eachother in a vector
Here's my guess. The behavior is dependent on whether you can actively accept or reject entries. If it's assumed that values c...

environ 3 ans il y a | 0

Réponse apportée
How to know how much I rotated a figure?
You should be able to query and set the camera position using view(); [az el] = view(); % get position % ... view(az,el); % s...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How can I crop rectangles from an image?
If I were to answer the question as asked: inpict = imread('image.jpeg'); % get mask selecting red lines yccpict = rgb2ycbc...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Returning cropped image on to original image after doing some analysis on that cropped portion
It seems like this is something that would be easier done in-figure, rather than trying to cut up screenshots. % ROI extents ...

environ 3 ans il y a | 2

Réponse apportée
Hello. I need you to help me with an example of a median filter with a 3x3 pixel to an image that I gave the noise of salt and pepper.
Image Analyst has a set of fixed-window noise removal filter demos posted on the forum. These are grayscale, but the concept ext...

environ 3 ans il y a | 0

Réponse apportée
Parula color on matlab 2013a
Hm. I don't know what parula() was originally interpolated in, but I gave it a shot in LAB just for fun. At least it's smooth ...

environ 3 ans il y a | 0

Réponse apportée
customize jet color bar, white at zero
This could be done with the colormapeditor(), but it's better to generate things programmatically. At least that way you can bu...

environ 3 ans il y a | 0

Réponse apportée
How to create a custom colormap and then apply it to an image?
How about an answer that is complete in what it demonstrates? The main lesson here is to use rgb2ind()/ind2rgb(), so let's actu...

environ 3 ans il y a | 1

Réponse apportée
Jet Colormap with black and white at the ends
Observe jet() in RGB: CT = jet(256); % plot the channel trajectories (it's simple PWL) plot(CT(:,1),'r'); hold on plot(CT(...

environ 3 ans il y a | 0

Réponse apportée
How to customize a color bar in matlab plot?
For what it's worth, here's the same colormap reconstructed. The map is PWL in RGB, so it's easy enough. % generate a new CT f...

environ 3 ans il y a | 1

Charger plus