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

4 years ago | 2 answers | 1

2

answers

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 1

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Load more