Question


Is this another bug in imread(), or is this just a forum problem?
I've been finding that imread() will no longer correctly process images with alpha content when I try to use it in forum posts. ...

environ 4 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
Why does imread read the alpha channel, but not the image itself?
Old question, I know, but I answer them when I'm bored. The reason that the image looks all black is because that's what it is....

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Plotting non zero elements of an array
Try this instead. plot(nonzeros(X(temp,:,1)),nonzeros(Y(temp,:,1)), 'r+', 'MarkerSize', 5, 'LineWidth', 2);

environ 4 ans il y a | 0

Réponse apportée
How to re-order a string array?
Use this: https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort

environ 4 ans il y a | 0

Réponse apportée
I'm trying to plot a circle within an image, but the circle remain invisible.
This is using the given images. The circle is there; the ship is placed and the sprite alpha is used. hA = axes('units', 'norm...

environ 4 ans il y a | 1

Réponse apportée
How do I get user input and converts each character to specific string
If i'm just supposed to guess, then: % one char vec for each a b c, etc symbols = {'.-' '..' '--' 'dee' 'ee' 'eff' 'gee'}; ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Reshape a 'column' matrix into a 'row' matrix
There are other ways this could be done, but just using reshape() and permute() is often the fastest: m = 5; p = 2; q = 5; ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How do I use a matrix in a For Loop Iteration
There are undefined variables and functions being used. M, N, and R are all being overwritten, and there are likely array size ...

environ 4 ans il y a | 0

Réponse apportée
fonksiyonun bir önceki değerini hafızada tutması
This is more of a precalc problem than a MATLAB problem: i0 = 0; % initial condition h = 0.001; % rate parameter numsteps =...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Finding the dimensions of an image
Everyone has already given the obvious answer, so now it's my turn to say that I actually avoid using size() for image processin...

environ 4 ans il y a | 1

Réponse apportée
How to use a contour between two curves?
You can use a patch object, but you'll have to specify the colormapping. This should be fairly straightforward, as your vertice...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Putting a legend on a fused image
Here's one way to work around the issue: A = imread('cameraman.tif'); B = fliplr(A); F = imfuse(A,B,'falsecolor'); imsho...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Superimposing three images of different sizes
Usually when overlaying images as with imfuse(), the purpose is to compare differences in local object content. If the images a...

environ 4 ans il y a | 0

Réponse apportée
hitmiss my code is not running
This: hitE = [100; 110; 100] is not the same as this: hitE = [1 0 0; 1 1 0; 1 0 0]

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to show multiple colors in the same slots? (imagesc)
If each element of A represents a single "slot", then no. A pixel can be represented by only one color tuple. If you create ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to adjust the brightness of an image in YCbCr color space
You'd do it the same way you'd do it on any other image, only you'd operate on the Y component alone. That said, "adjust the br...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
For Loop maximum graph
Idk why membrane doesn't allow for the x,y data to be an output argument, but it doesn't. You can just create them anyway. m =...

environ 4 ans il y a | 0

Réponse apportée
repeated addition of a singular number
What's wrong with just defining a linear vector? x = 0.0001:0.0001:0.1

environ 4 ans il y a | 0

Réponse apportée
How to blend an image patch within an image?
First off, imfuse() is more of a tool for offhand comparison of two images, not as a practical image composition or blending too...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
I want to slide 3*3 window across image (I)
What is the question? There are many examples of doing this the hard way. If that's what you want to do, feel free to look. O...

environ 4 ans il y a | 0

Réponse apportée
How to give trail to particles/ How to fade out plots with time (complex example)
Here's one way using scatter3() % setting initial conditions % Number of particles N = 3; % i'm using fewer points for ease ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to create a math function with changeable number of arguments.
You might want to start reading about the usage of varargin: https://www.mathworks.com/help/matlab/ref/varargin.html https://w...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
extract vector from large vector
Instead of generating a bunch of loose vectors, it's often better to just use a matrix: A = [0 0 0 1 2 3 4 5 6 7 8 9 10 11 12 1...

environ 4 ans il y a | 0

Réponse apportée
Pairwise image subtraction from a folder
Trying to increment j won't work like that. Just specify a vector that skips every other integer. In this case, label_name has...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can anyone please help me in resolving this error: Incorrect input size. The input images must have a size of [32 32 1].
Without any information, I'm going to assume that the images are not single-channel images. switch size(thisimg,3) case 1 ...

environ 4 ans il y a | 0

Réponse apportée
As a vector into a matrix of non-uniform length
Here's one way x = rand(1,123); % n = 1003, 2055 , 7062 m = 10; % output array height trimlen = floor(numel(x)/m)*m; % numb...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Summing of no. in a coloumn
A = 1:10 B = cumsum(A)

environ 4 ans il y a | 0

Réponse apportée
If statement for matrix
If you want to change array values, why are you using disp()? This will produce the output of the same size: A = rand(4,3); % ...

environ 4 ans il y a | 0

Réponse apportée
Separate arrays within loop using indexing?
You should just be able to use a cell array. start = [1,8]; stop = [7,11]; data = [2,2,2,3,3,4,4,2,3,4,4,2]; % same thin...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How invert only one colour in RGB image?
The easy way to do this is L inversion. You can do this the hard way, or you can just use MIMT tools: inpict = imread('scope.p...

environ 4 ans il y a | 0

| A accepté

Charger plus