Réponse apportée
generating random particles effect to an image
This is built using MIMT tools: % parameters s = [500 300]; % output image size [height width] numspots = 20; % number of spo...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
heatmap color RGB data for manaully created image
The use of heatmap() is unnecessary. This is a basic use of indexed color. Generate a color table and find the indexes into it...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
What non-built-in functions do you use frequently?
I know nobody needs a thread revival, but it's something that I'm constantly reminded of because I have to avoid it in posting t...

plus de 3 ans il y a | 0

Réponse apportée
Saving an imagesc file as .png without the white borders?
If you have an image and want to save the image, save the image. Don't display the image and then save a screenshot of the disp...

plus de 3 ans il y a | 0

Réponse apportée
sum a column per row with loops
I'm going to assume you mean to do a cumulative sum of rows: A = ones(5) % a smaller example B = cumsum(A,2)

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can i crop the image based on white pixel value
Assuming that the image is 2D, this is one way A = imread('pepcircmask.png'); imshow(A) % find the first and last row contain...

plus de 3 ans il y a | 0

Réponse apportée
Is Pixel Interpolation possible in MATLAB? If so, how?
You should be able to use regionfill() % a test array with a zero pixel A = uint8(randi([0 255],5,5)); A(3,3) = 0; imshow(A)...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
unit 8 and im2double and white pixel
I think it was your comment I responded to earlier, so I suppose there's no harm repeating it here. Tools like imshow() and imwr...

plus de 3 ans il y a | 1

Réponse apportée
How to interpolate a closed polar plot
EDITED: You could enforce endslopes, but this is probably more accurate % the same fake data Angle = [0 90 180 270 360]; Ma...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Understand the algorithm(s) employed in imlocalbrighten function?
The majority of the work done by imlocalbrighten() is handled by imreducehaze(). The rest is just input parsing, inversion, and...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
I'm trying to perform the XOR operation between a 4x4 block of an image and a pseudo-random matrix of size 4x4.
Use bitxor() on arrays of uint8 class. You'll have to cast your random array to match using uint8(). A = uint8([1 2 3]) B = u...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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(...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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() %...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 =...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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'...

plus de 3 ans il y a | 0

Réponse apportée
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]; ...

plus de 3 ans il y a | 0

Réponse apportée
adding borders to images
The following reference answer covers black/gray/white borders, colored borders, and patterned/textured borders using MATLAB/IPT...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Charger plus