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
  • Most Accepted 2022
  • Ace
  • Solver
  • Personal Best Downloads Level 4
  • GitHub Submissions Level 3
  • Thankful Level 4
  • 12 Month Streak
  • Most Accepted 2021
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 5
  • Explorer

View badges

Content Feed

Answered
oblate and prolate figs
See ellipsoid() r = [1 1 2]; % radius [x y z] c = [0 0 0]; % center [x y z] npoints = 30; % if no output arguments are req...

4 days ago | 0

| accepted

Answered
issue with colormap (colorcube)
From the R2019b release notes: Predefined colormaps have 256 colors by default Behavior change The predefined colormaps, such...

8 days ago | 2

Answered
find Center pixel to maximum distance
I'm going to ignore how to calculate the distance array, and just focus on the task that the tagging implies. If the goal is to...

9 days ago | 0

Answered
I tried to generate a sequence with a specific interval, but the output skips some intervals.
I missed the comparison. You're dealing with floating-point numbers. You can expect exact equality tests to fail due to roun...

9 days ago | 1

| accepted

Answered
How can I add timer to a stack of image and play it as a video with timer going on in the corner of it?
See this thread https://www.mathworks.com/matlabcentral/answers/101413-how-can-i-add-text-to-an-image-and-make-the-text-become-...

10 days ago | 1

| accepted

Answered
What is the range of L (lightness) when plotting HSL bi-cone colour space?
In most implementations , L will be from 0 to 1, so yeah if you wanted to visualize it at uniform scale, it would be a squat bic...

10 days ago | 0

| accepted

Answered
Size doesn't match Value?
You're finding the size of the char vector, not the variable. myvariable = rand(100,1); size(myvariable) % this is a 100x1 n...

11 days ago | 2

| accepted

Answered
How to add a portion of image to another image
Hmm. That's a very good question. How would one accomplish an ill-defined image composition? Well, the answer is easy. You c...

11 days ago | 0

Answered
Removing neighbours that are too close from eachother in a vector
Here's my guess. The behavior is dependent on whether you can actively accept or reject entries. If it's assumed that values c...

12 days ago | 0

Answered
How to know how much I rotated a figure?
You should be able to query and set the camera position using view(); [az el] = view(); % get position % ... view(az,el); % s...

14 days ago | 0

| accepted

Answered
How can I crop rectangles from an image?
If I were to answer the question as asked: inpict = imread('image.jpeg'); % get mask selecting red lines yccpict = rgb2ycbc...

14 days ago | 1

| accepted

Answered
Returning cropped image on to original image after doing some analysis on that cropped portion
It seems like this is something that would be easier done in-figure, rather than trying to cut up screenshots. % ROI extents ...

14 days ago | 2

Answered
Hello. I need you to help me with an example of a median filter with a 3x3 pixel to an image that I gave the noise of salt and pepper.
Image Analyst has a set of fixed-window noise removal filter demos posted on the forum. These are grayscale, but the concept ext...

15 days ago | 0

Answered
Parula color on matlab 2013a
Hm. I don't know what parula() was originally interpolated in, but I gave it a shot in LAB just for fun. At least it's smooth ...

15 days ago | 0

Answered
customize jet color bar, white at zero
This could be done with the colormapeditor(), but it's better to generate things programmatically. At least that way you can bu...

16 days ago | 0

Answered
How to create a custom colormap and then apply it to an image?
How about an answer that is complete in what it demonstrates? The main lesson here is to use rgb2ind()/ind2rgb(), so let's actu...

16 days ago | 0

Answered
Jet Colormap with black and white at the ends
Observe jet() in RGB: CT = jet(256); % plot the channel trajectories (it's simple PWL) plot(CT(:,1),'r'); hold on plot(CT(...

16 days ago | 0

Answered
How to customize a color bar in matlab plot?
For what it's worth, here's the same colormap reconstructed. The map is PWL in RGB, so it's easy enough. % generate a new CT f...

16 days ago | 0

Answered
Creating a bounding box that is not a perfect rectangle
As Matt says, it depends what you intend to do with the image region. If all you intend to do is some sort of color analysis, t...

17 days ago | 1

| accepted

Answered
Distance of rgb pixel from each pixel of image
For RGB distance between a single pixel and the image mean: % a small bit of a test image inpict = imread('peppers.png'); inp...

17 days ago | 0

Answered
change the range of your sections in your colormap
When I answered this question, I was a bit hasty, as I thought I had seen a good example but couldn't find it. Well, it's days ...

18 days ago | 0

Answered
How to customize Colorbar on map?
You should be able to set the axes colorscale to log. % some fake data x = linspace(0,1,100); y = x.'; Z = 20*10.^(y-1) .* x...

19 days ago | 0

Answered
inserting image.png in gui with transparent background
Your images have alpha content, but you're not reading any of it or using it. Instead of blindly trying to reconstruct the alph...

20 days ago | 0

Answered
Transparent figure window for real-time projection
Last I heard, the answer was no. https://undocumentedmatlab.com/articles/transparent-matlab-figure-window https://www.mathwork...

20 days ago | 0

Answered
Distance between pixels and axes in a image
Consider the example: % a binarized image inpict = imread('monojagblob.png'); mask = imbinarize(inpict); imshow(mask) % pad...

20 days ago | 0

| accepted

Answered
i have done segmentation of image using ''createMask'' function which is mentioned below. now how can i get back the original image that is by desegmentation. thank you in advanced . reply as earliest possible
If you can run the above code, then you necessarily already have the thing you want. If the original image is lost and all you ...

20 days ago | 0

Answered
change the range of your sections in your colormap
If nothing else, % some data x = linspace(-pi,pi,100); y = x.'; Z = cos(x).*sin(y); % idk how your H is defined, so i'm ...

21 days ago | 0

| accepted

Answered
How can I plot 18 lines in different colors on a single plot?
In versions prior to R2019b, you can always set the axes property without the colororder() function. % some fake data x = lins...

21 days ago | 0

| accepted

Answered
I would like to rename a 100 jpg images name at once
http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F https://www.mathworks.com/matlabcentral/answers/13228...

21 days ago | 0

Answered
How to automatically crop region of an object in an image with a bounding box
I don't know what parts of the image may vary between frames. Particularly, whether the object always appears with a similar si...

21 days ago | 0

| accepted

Load more