
DGM
Hi, I'm nobody. I don't belong here, but I have nothing better to do. Matlab used to be part of my work. Now it's part of my hobbies. That's pretty sad, really. -- I don't reply to email anymore. If you have a question about my questionable FEX submissions, leave a comment on the FEX page and I'll get the notification. Alternatively, ask a question on the forum and @DGM me so I'll get notified.
Statistics
RANK
38
of 262,996
REPUTATION
4,591
CONTRIBUTIONS
28 Questions
1,798 Answers
ANSWER ACCEPTANCE
71.43%
VOTES RECEIVED
473
RANK
1,699 of 18,000
REPUTATION
1,017
AVERAGE RATING
5.00
CONTRIBUTIONS
9 Files
DOWNLOADS
165
ALL TIME DOWNLOADS
6616
RANK
of 113,937
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
Setting overlap colours in plot with transparent layers
When using alpha properties to visualize the intersection of graphics objects, there isn't really a way to make the intersection...
2 days ago | 0
| accepted
How can I use view a montage using Image Viewer App through imtool()?
You should be able to use imtile() instead of montage() with the same syntax in this particular case. The output of montage() i...
2 days ago | 0
| accepted
How to modified maximum pixel value in logical array
I'm going to post this as a tentative answer. I doubt my interpretation of your intent is wholly correct, but it's probably cor...
6 days ago | 0
Convert RAW File (images) to PNG
A .raw file can be a number of different things. I'm not familiar with .mhd files, so I can't comment on that. It's not clear...
6 days ago | 0
problems with creating a multiplication table
R and C have no ':' in them. R and C are row vectors, because that's what 3:10 and 2:3:33 are. It's unclear what the behavior ...
9 days ago | 0
| accepted
Hatchfill function not working
Both hatchfill() and applyhatch_pluscolor have been unmaintained for a decade now and predate the current graphics system. If y...
10 days ago | 0
I used applyhatch_pluscolor to fill the bar chart, but the legend and coordinates text are blurred,
That FEX submission hasn't been maintained in over a decade and predates the current graphics system. It doesn't work unless yo...
10 days ago | 0
| accepted
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...
12 days ago | 1
| accepted
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...
15 days ago | 0
| accepted
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...
16 days ago | 0
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...
16 days ago | 0
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)
16 days ago | 0
| accepted
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...
18 days ago | 0
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)...
19 days ago | 1
| accepted
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...
22 days ago | 1
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...
22 days ago | 0
| accepted
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...
22 days ago | 1
| accepted
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...
23 days ago | 0
| accepted
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...
23 days ago | 0
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 ...
24 days ago | 0
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(...
24 days ago | 0
| accepted
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...
24 days ago | 1
| accepted
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...
24 days ago | 0
| accepted
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...
25 days ago | 0
| accepted
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() %...
25 days ago | 1
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...
29 days ago | 0
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...
29 days ago | 1
| accepted
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 ...
29 days ago | 0
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...
29 days ago | 0
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...
29 days ago | 0