Pregunta


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. ...

más de 4 años hace | 2 respuestas | 1

2

respuestas

Respondida
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....

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 1

Respondida
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'}; ...

más de 4 años hace | 0

| aceptada

Respondida
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; ...

más de 4 años hace | 0

| aceptada

Respondida
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 ...

más de 4 años hace | 0

Respondida
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 =...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 1

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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]

más de 4 años hace | 0

| aceptada

Respondida
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 ...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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 =...

más de 4 años hace | 0

Respondida
repeated addition of a singular number
What's wrong with just defining a linear vector? x = 0.0001:0.0001:0.1

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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 ...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 1

| aceptada

Respondida
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...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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 ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
Summing of no. in a coloumn
A = 1:10 B = cumsum(A)

más de 4 años hace | 0

Respondida
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); % ...

más de 4 años hace | 0

Respondida
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...

más de 4 años hace | 0

| aceptada

Respondida
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...

más de 4 años hace | 0

| aceptada

Cargar más