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
  • Solver
  • Personal Best Downloads Level 4
  • GitHub Submissions Level 3
  • Most Accepted 2021
  • Guiding Light
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 5
  • Explorer
  • First Answer

View badges

Content Feed

Answered
How do I save the image for the last part code?
You don't. The output of regionprops() is a struct containing the specified object properties. It doesn't even make conceptual...

7 hours ago | 0

Answered
Plot in 3D isolines from 2D image
Or perhaps [x y z] = peaks(50); hs = surf(x,y,z); hold on hs.EdgeAlpha = 0.5; [~,hc] = contour3(x,y,z); hc.LineWidth = ...

8 hours ago | 0

Answered
How do you create a test image containing a ramp edge?
Here's one way. outpict = zeros(1,150,'uint8'); % a blank vector outpict(50:99) = linspace(0,128,50); % add a linear ramp in...

1 day ago | 0

| accepted

Answered
How to dim a picture in matlab
See the answer to the same question here: https://www.mathworks.com/matlabcentral/answers/159435-dimming-an-image-with-a-new-ma...

2 days ago | 0

Answered
Dimming an Image with a new max?
The intent seems terribly obvious to me. OP wants an image "reduced to a new maximum", and data truncation is specifically desc...

2 days ago | 0

Answered
How do i find the RGB values of color image in range 1 to 255
I want to find the RGB color at/around a specific location in an image That can be done, but it depends how you want to select ...

3 days ago | 0

Answered
Rotate an image without having a deformation
From the documentation: B = imrotate(A,ANGLE,METHOD,BBOX) rotates image A, where BBOX specifies the size of the output...

3 days ago | 0

Answered
How to apply a mask only on saturation in a hsv image
It's not at all clear what the goals even were, but considering that other people are looking at this question and upvoting it, ...

3 days ago | 0

Answered
how to remove the pixels under the curve on image
If you're already using drawPolygon(), use it to create a mask directly by either right-clicking on the ROI or by using createMa...

3 days ago | 0

Answered
I have three RGB values,i want to know color of this RGB values,how can i do this
I have no idea what's going on here either, but I can guess. If you want a color name, then you can use Stephen's colornames()...

3 days ago | 1

Answered
How can I place labels on the end of my line plots?
You can use text(). You might want to adjust things a bit to help with readability. for r = 1:1:2 for a = [0.1 0.2 0.5 0....

4 days ago | 0

| accepted

Answered
pleasee please i need help with this code in app designer
The character 'a' isn't valid data for plot(). You might mean plot(app.UIAxes,a) ... but passing an image to plot() isn't lik...

4 days ago | 0

Answered
Shift a square matrix along a bigger square matrix by one
See either imfilter() or conv2(). If you're forced to do it manually, then there are many examples of sliding window filter...

4 days ago | 0

Answered
I am getting an error in line 4 " myproj('project2.m" how do I fix this?
What Walter says is correct. I'm not going to guess what you meant, but the character it says isn't valid isn't a valid charact...

4 days ago | 0

| accepted

Answered
Create an alternating matrix
There are many ways. Here's one. % parameters st = 5; ev = 20; A = [0 kron(st:st:ev,[1 -1])] Here's another: B = repmat...

4 days ago | 1

| accepted

Answered
so i have this line code and this error pops up can anyone plz help me fix it and thank you in advance
When given an RGB image, imadjust() will accept input and output levels specified either as a 2-element vector (same levels for ...

4 days ago | 0

Answered
How to add different colors in particular rows and columns?
A numeric array doesn't have a color. The numbers can represent colors, but the array itself has no color properties. Even if ...

5 days ago | 0

Answered
Determining Manual ROI from a graph (not image)
That's what the data brush tool is for. https://www.mathworks.com/help/matlab/ref/matlab.graphics.interaction.internal.brush.ht...

5 days ago | 1

Answered
How to take the color grade from one image and apply it to another?
The paper that @Image Analyst linked is good, but I haven't seen any MATLAB implementation. You're free to post it on the File ...

6 days ago | 1

Answered
How can I smooth out the colour of a image?
There are a number of things going wrong, but the reason why it's black is simple. FilterRed = picture(:,:,1); % this is uint...

7 days ago | 0

Answered
i have this code of " Power law transformation " on an image ?? why is the error occuring ??
There are a few things wrong here, but this question demonstrates one thing very clearly. If you can't be bothered to post read...

7 days ago | 0

Answered
How to calculate the dynamic range of an RGB image
The error occurs because you're trying to do everything with integer data. % read an image inpict = imread('peppers.png'); i...

7 days ago | 0

Answered
How can I remove the small blobs in ‘Blobs.jpg’? is it using filtering right? i got confused with the step to remove the blob on that image.
Something like this: % read an image inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/148990/im...

7 days ago | 0

Answered
add transparency to a contourf
The FaceAlpha and EdgeAlpha properties are new in R2022b. I'm not familiar with cotourfm() or mapping tools, so I can't comment...

7 days ago | 0

Answered
Plotting Mutually-Occluding (Knit) Curves in 2D
I'm going to assume that I'm the only person who would do it by image composition, but I guess that's the niche I've made for my...

7 days ago | 0

Answered
Plotting Mutually-Occluding (Knit) Curves in 2D
I'm going to take this cursory shot at doing it with plot3(). My curve construction is pretty naive, but I just found it easier...

7 days ago | 0

Question


Plotting Mutually-Occluding (Knit) Curves in 2D
I was browsing and doing cleanup earlier, and I came across this misplaced question-as-answer on a question about basic plotting...

7 days ago | 2 answers | 0

2

answers

Answered
stacking of large matrix into stack of small column matrix
I'm not really sure what exactly you want, but I'm going to take a guess anyway. I'm going to assume that nele is possibly less...

8 days ago | 0

Answered
How to look up a smaller array in a larger array while preserving shape
I'm going to demonstrate a couple ways you can do this using neighborhood operations. The case of a solid 2x2 nhood is a bit of...

8 days ago | 0

Load more