Community Profile

photo

DGM


Last seen: Today Active since 2015

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

All
  • Thankful Level 4
  • 12 Month Streak
  • Most Accepted 2021
  • Guiding Light
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 5
  • Explorer
  • First Answer
  • Personal Best Downloads Level 3
  • First Review
  • First Submission

View badges

Content Feed

View by

Answered
Changing contrast of the image
To preface, I have no idea how PS actually calculates anything internally, and I don't have the original image, so this is not n...

17 hours ago | 0

Answered
Automatic Image Level Adjustment
A simple linear "Levels" type adjustment tool is exactly what imadjust() provides. In the Photoshop UI, you have five parameter...

19 hours ago | 0

Answered
How can I convert a black and white positive image into negative.
Either use imcomplement(), or do simple additive inversion. https://www.mathworks.com/matlabcentral/answers/251519-i-need-neg...

21 hours ago | 0

Answered
How to save images!?
I have no idea what this code is, but the images are grayscale. When you isolate one color channel, that's all it is. It's a s...

22 hours ago | 0

Answered
How to enhance underwater image?
MIMT has a simple tool based on this paper. A = imread('image.jpeg'); B = uwredcomp(A); % using defaults imshow([A;B]) ...

2 days ago | 0

Answered
how can i calculate brightness,contrast,hue and saturation of a image?
@Jurgen's answer recommending HSV is probably as appropriate as the vague question warrants. Still, since it seems people are s...

2 days ago | 0

Answered
how to plot multiple graph on top of images together?
This is an oversimplified example: % a picture comes from somewhere A = imread('peppers.png'); % some data comes from somew...

2 days ago | 0

Answered
How can I remove unwanted area by mask?
Just get the file names somehow and read/process/write the files in a loop. This is one example based on simple pattern matchin...

2 days ago | 0

| accepted

Answered
Quickest way to join images preserving each colormap in MATLAB
Read the images into a cell array in the loop. If the images are indexed color images, then convert them to RGB using ind2rgb() ...

2 days ago | 0

Answered
Sum values from one column vector based on another column vector
Assuming A and B are different variable names with the same length: A = [1; 2; 4; 1]; B = [34; 78; 3; 28]; mysum = sum(B(A==1...

3 days ago | 0

| accepted

Answered
Right-side text limit working erratically while changing the font
I played around with this in R2019b. Bear in mind that there are two relevant prefs here. The RH text limit is just an indicat...

3 days ago | 0

| accepted

Answered
use of strcmp with two conditions
Just a guess, since I have no idea what your array content or size are. strcmp() takes two arguments, but you're feeding it t...

3 days ago | 1

Answered
webread not returning full html contents
Webread() just reads the page. It doesn't execute all the tons of scripts that are used to build the DOM. https://www.mathwork...

7 days ago | 0

Answered
imshow breaks after changing uiaxes limits
You're specifying that the axes limits should be outside of the image region. currentimage = imread('cameraman.tif'); hi = i...

7 days ago | 0

| accepted

Answered
How can i fill NaN values on unwanted region of an image?
IPT regionfill() can do inpainting based on a logical mask. You could use isnan() to derive the mask from the image. Alterna...

7 days ago | 0

Answered
Openfig+hold on
openfig opens figures hold toggles properties of axes It doesn't make sense to try to put a figure inside an axes. Perhaps yo...

8 days ago | 1

Answered
Welcome... I need code in matlab to enhancement face images, enhancement methods(HE,AHE,CLAHE) and then measure(MSE,PSNR)
Look at the documentation for histeq adapthisteq immse psnr adapthisteq() does CLAHE by default. If you want AHE without...

8 days ago | 0

Answered
Plotted image is clear but saved image is blurry- why?
If you want to retain the crisp edges of the original low-resolution image, you cannot use a continuous interpolant. The defaul...

8 days ago | 1

Answered
Divide an image vertically into two equally luminous parts, ..., calculate the luminance of each part.., PERSONAL NON-FUNDED RESEARCH,
I'm just going to repost this here, since all the cool kids are posting on this one and the other one is closed anyway. :) A = ...

8 days ago | 0

Answered
Divide an image vertically into two equally luminous parts, bisect these two parts, calculate the luminance of each part....
Something like this? A = imread('peppers.png'); A = rgb2gray(A); % BT601 luma A = im2double(A); % split the image into two...

9 days ago | 0

| accepted

Answered
Repair damaged circles and create closed curves
I suppose my solution has a weakness that should've been obvious to me. It fails if it has to do extrapolation to bridge a gap. ...

10 days ago | 0

| accepted

Answered
Can MATLAB do radial enlargements of plots?
You could do this by simply transforming the data itself scale = 2; center = [1 2]; % [x y] r = 1; th = 0:360; x = r*cosd...

10 days ago | 0

| accepted

Answered
creating a video - zoom in effect of still image
You can get a bit better results by not rounding the rect parameter scaling prior to cropping It's not perfect, but it's a b...

10 days ago | 1

Answered
I have tried many different ways of plotting but it won't make a line graph can someone help me out?
You are creating a plot object that contains only one point, but have no specified marker style to indicate those points. There...

10 days ago | 0

Answered
how do i find a set using matrix
Like this? sza = 10; A = randi([1 10],sza) % output will be variable-length % preallocate to maximum length kmax = max(si...

10 days ago | 0

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

12 days ago | 0

| accepted

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

12 days ago | 0

| accepted

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

12 days ago | 0

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

14 days ago | 0

| accepted

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

14 days ago | 0

Load more