Frage


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

mehr als 4 Jahre vor | 2 Antworten | 1

2

Antworten

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 1

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

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

mehr als 4 Jahre vor | 0

| akzeptiert

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

mehr als 4 Jahre vor | 0

| akzeptiert

Mehr laden