Answered
Save matrix as a spreadsheet image (in previous versions)
This is what I used to create the first image: tablesize = [3 4]; % size of table A = rand(tablesize); % some test data to fi...

2 mesi ago | 0

Answered
Using rgb2ind for colour animated gif
I posted this already as a comment in the other thread, but I'll put it here too: MIMT gifwrite() works to write I/IA/RGB/RGBA ...

2 mesi ago | 0

Answered
How can i define part of image to work on (Specific pixel range) not whole image ?
Depending on your needs, you may be able to use roifilt2(). Example Given a 2D (grayscale) image and a logical mask, roifilt2(...

2 mesi ago | 1

| accepted

Answered
Segment pink color spots from image
This is one example. A = imread('pink.jpg'); % HSV thresholds for pink areas th = [0.95 0.04; 0.15 1.00; 0.61 1.0...

2 mesi ago | 1

| accepted

Answered
Adding Specific Ratio of Noise to an Image
The 'salt & pepper' option is the only option with a density parameter. Salt & Pepper noise will affect a specified fraction of...

2 mesi ago | 0

| accepted

Answered
How can I delete part of a binary image?
If all you want to do is put a black region over that part of the image: myimage(310:end,150:300,:) = 0; Otherwise, you'll hav...

2 mesi ago | 0

| accepted

Answered
Is it possible to generate an encrypted function that can be used a limited number of times?
I suppose one way would be to make a function that deletes itself, though this could be defeated. function mayfly() %...

2 mesi ago | 1

Answered
How to covert figure to png after image stitching
What type of code should insert to generate the figure to png Don't save a screenshot of the image. Save the image itself, usi...

3 mesi ago | 0

Answered
Count occurences of row in matrix faster than by using nnz
If you know there are repeated rows, then you know that you're performing redundant operations. One thing you could do is to us...

3 mesi ago | 1

| accepted

Answered
How to multiply and sum extracted array elements based array indices held in another array?
I'm not sure about the index offsets you're using, but this is why you don't try doing scattered indexing using subscripts. If ...

3 mesi ago | 0

Answered
getting the index after comparing two logicals
Something like this: a = [1 0 0 0 1]; b = [0 0 0 0 1]; idx = find(a & b) Though depending on your needs, the usage of find...

3 mesi ago | 0

Answered
Why disk structuring element of disk is 4? It's usually 3 or 21
The size of the structuring element can be whatever is suitable for the task at hand. That's why it's user-specified. While st...

3 mesi ago | 0

Answered
Replacing elements in a vector
Your example isn't consistent. I'm assuming you want this: A = [10 20; 30 40; 50 60]; idx = [2 1; 1 4; 3 3]; B = A.'; B =...

3 mesi ago | 0

Answered
Find unique values in array
Since there's generally no guarantee that the rows have the same number of unique elements, then I wouldn't assume that would wo...

3 mesi ago | 0

Answered
border of random colour around grey image
While this answer covers a number of ways to get a border on an image, it also demonstrates that getting a colored border is a b...

3 mesi ago | 0

Answered
Creating border of an image
While it may suffice to use array indexing to insert the image into a larger image, there are other methods. Depending on what'...

3 mesi ago | 0

Answered
How do I create a gradient border around an image?
You could also do this by using inpainting tools. Using IPT regionfill(): A = imread('peppers.png'); padwidth = [30 30]; ...

3 mesi ago | 0

Answered
adding borders to images
The following reference answer covers black/gray/white borders, colored borders, and patterned/textured borders using MATLAB/IPT...

3 mesi ago | 0

Answered
Using Stretchlim and Imadjust (automatically and manually)
See the examples in the answer here: https://www.mathworks.com/matlabcentral/answers/528133-automatic-image-level-adjustment A...

3 mesi ago | 0

Submitted


Tools to read and write animated gif files
Functions to read and write animated gifs to and from 4-D RGB image arrays

3 mesi ago | 10 downloads |

Thumbnail

Answered
Fusing one rgb image with one grayscale image using imfuse function
The contribution of either image is reduced by half, because that's what a 50% opacity blend is. It's the simple arithmetic mea...

3 mesi ago | 0

| accepted

Answered
I wanna know how imadjust is working. The whole algorithm and its reference paper.
Barring all the validation and ancillary stuff, the core operations are very simple. You can open imadjust.m and see for yourse...

3 mesi ago | 0

Answered
Geometric mean with logarithmically spaced data?
"how do I do this?" % three vectors: A = logspace(0,2,10); B = logspace(0,1.9,10); C = logspace(0.2,2,10); % put them in ...

3 mesi ago | 0

| accepted

Answered
Meaning of 'offset' returned by imageinfo
imageinfo() is just a convenience tool for what imfinfo provides. That said, the metadata that's available depends on the file ...

3 mesi ago | 0

| accepted

Answered
Sum of products of odd index numbers (sum of content)
This is my guess. A = [1 2 3 ; 4 5 6; 7 8 9]; % assuming "index" means row/col subscripts sum(A(1:2:size(A,1),1:2:size(A,2)...

3 mesi ago | 0

Answered
Converting a 3d array into a 4d array
For what it's worth, MIMT imdetile() makes this sort of thing extremely easy to write. It's just one line. % image is 876x1314...

3 mesi ago | 0

Answered
I do not know how to make this condition on the hue work
You don't need any loops. You could just do: % no loops necessary mask = Hue>huev+0.1 | Hue<huev-0.1; imghsv(repmat(mask,[1 ...

3 mesi ago | 0

Answered
Help needed with regular expressions
I'm sure someone can be more precise with this explanation, but here goes: [G] any one of the characters within the square brac...

3 mesi ago | 1

Answered
Dilatation and Erosion as custom function for signal processing
The loop part can be cleaned up, but a big part of why the output looks messed up starts here: output = zeros(length(inputSigna...

3 mesi ago | 0

| accepted

Answered
I want to get result image and set to variable from output figure matlab
That depends on what exactly you mean by "image". If you want to capture the axes and its contents (plots, images, annotation...

3 mesi ago | 0

Load more