
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
40
of 260 071
REPUTATION
4 403
CONTRIBUTIONS
28 Questions
1 722 Answers
ANSWER ACCEPTANCE
71.43%
VOTES RECEIVED
453
RANK
1 773 of 17 885
REPUTATION
957
AVERAGE RATING
5.00
CONTRIBUTIONS
9 Files
DOWNLOADS
198
ALL TIME DOWNLOADS
6327
RANK
of 111 631
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
any ideas for making code faster?
Here. This is about 5x as fast, though it could be improved I'm sure. R = [0.004 0.0057 0.005 0.005 0.0045 0.0044 0.005]; X =...
en dag ago | 0
| accepted
How to save Histogram of Multiple Images
This should be a start sourcefolder = 'E:\input'; filepattern = fullfile(sourcefolder, '*.png'); % this shouldn't be in the...
2 dagar ago | 0
| accepted
Index exceeds the number of array elements in image processing.
Obviously, not all columns of the edgemap will contain nonzero elements, so r will often be zero-length. Also, Graycrop isn't u...
2 dagar ago | 0
thermal image processing to get the temprature on each pixel
Image Analyst has a number of examples https://www.mathworks.com/matlabcentral/answers/320467-i-need-to-convert-rgb-image-into...
4 dagar ago | 0
| accepted
convert image in matlab
As IA notes, in order to find out how to do a Photoshop task in MATLAB, you figure out how to do it in Photoshop first. Transla...
4 dagar ago | 0
Place one image on a blank image but several times i.e (passport style)
If the FG images are simple, solid rectangular images, you can just write a loop and insert each image into the background by di...
4 dagar ago | 0
How to blur with a controlled area?
If the user has Image Processing Toolbox, using roifilt2() or even imfilter()/imgaussfilt() could simplify the task. For a smal...
4 dagar ago | 0
Fill contour color into the graph
I somehow doubt this is actually what you want, but I'll oblige. % given theta = [80.86 81.36 81.82 82.38 82.98 83.64 84.28 85...
5 dagar ago | 0
Save a grayscale image as an colored image
Depending on what you mean when you say you want it to be a colored image, this might have the answer: https://www.mathworks.co...
5 dagar ago | 0
| accepted
How to generate a multi-dimensional array from a vector ?
I'm sure there are more elegant ways, but here's this. I'm pretty sure it works. % inputs m = 3; x = [1 2 3 4 5 6 7 8 9]; ...
6 dagar ago | 0
MATLAB output is a bunch of numbers with operators not the exact number
To be pedantic, those expressions are the exact result. The decimal values are an approximation. That said, you should be ab...
6 dagar ago | 0
this is a part of my code, I am getting this message. "Unable to perform assignment because the indices on the left side are not compatible with the size of the right side."
I'm going to go out on a limb and say that there's no reason to believe that the RHS of this assignment is a scalar. index(i)...
6 dagar ago | 0
How can i correct brightness of a monochrome image using arithmetic operations?
For basic brightness/contrast controls, see this demo. https://www.mathworks.com/matlabcentral/answers/496452-contrast-vs-brigh...
6 dagar ago | 0
How can I combine bit map images to get back the original grey scale image?
Using a bunch of numbered variables forces you into writing unnecessarily repetitive code. This can be simplified. One way wou...
6 dagar ago | 0
How to superimpose many images using loop?
Imfuse is a simple tool for visually comparing two images. It has no practical use for processing more than two images. It sho...
6 dagar ago | 0
How can I use sliceomatic for 3D plots without getting the below errors?
As far as I know, sliceomatic() has been broken for years. As the error says, 'new' is not a valid option for the 'nextplot' pr...
6 dagar ago | 0
Combining images to make a composite image
There are a number of ways to do this. As usual, I'm going to generalize a bit since I doubt OP is the one who will see this an...
7 dagar ago | 0
How to overlap more than two images into a one image with Matlab?
Imfuse() is a simple tool for visually comparing two images. It has no utility for similar tasks involving more than two images...
7 dagar ago | 0
if loop dosen't complete?
size() returns a variable-length vector. Don't compare against the size() of an array if you're trying to compare against a sca...
8 dagar ago | 1
| accepted
how to create random value matrix with size 3X5?
If the numbers are supposed to be integers: A = randi([1 10],3,5) otherwise, if the numbers can be any value in the specified ...
8 dagar ago | 0
Running out of memory using imfuse repeatedly
The reason you're running out of memory is simple. Whenever imfuse() concatenates two images using the 'montage' option, the re...
8 dagar ago | 1
| accepted
Surround color for display
When you mask off data using NaN, the plot is simply not drawn there, revealing whatever graphics objects might be beneath it. ...
9 dagar ago | 0
| accepted
using nested for loop to print all of factorial
Something like this should be a start: for n = 1:100 % set a nested for loop factorials = 1; % this needs to be reset insi...
10 dagar ago | 0
| accepted
How may one digitize a curve from an image
These two answers are relevant and contain links to other related answers. https://www.mathworks.com/matlabcentral/answers/16...
11 dagar ago | 0
| accepted
Problem bluewhitered function colormap
bluewhitered() doesn't work like normal colormap tools. It actually queries the current axes 'clim' property and the map is tru...
12 dagar ago | 0
Function int2bit not found
int2bit() was introduced in R2021b. If you're using R2019b, it's not available.
12 dagar ago | 0
Unable to apply separate colormaps and display in subplots
You can fix that by explicitly specifying the axes in the call to colormap(). original = imread('cell.tif'); h1 = subplot(2,...
12 dagar ago | 0
| accepted
Extract a series of values every n row of a matrix
Consider the small example: % a small 100x3 test array A = repmat((1:100).',[1 3]) % parameters blocksize = 10; rowstokee...
12 dagar ago | 0
| accepted
i have been given to find out the psnr value of a hyperspectral image / data. its is of size 690*110*300. how can i proceed to do that?
Consider the example: A = rand(10,10,10); B = A + randn(10,10,10)*1E-6; % using IPT psnr() R0 = psnr(B,A) % using basic...
12 dagar ago | 0
making matrix with text file information
EDIT: updated to handle new file encoding and empty blocks I'm just going to throw this out there. I'm sure it's entirely over...
12 dagar ago | 0
| accepted