Community Profile

# DGM

Last seen: Today Attivo dal 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.

All

#### Content Feed

Visto da

Risposto
I need help writing this function
Break it down into constituent terms to make it easier to write. See if this is what you're after. % some fake data x = 1:10;...

1 giorno fa | 0

Risposto
Can't open or create scripts in MATLAB 2023a on Mac.

2 giorni fa | 0

Risposto
Hi i have a set of data which is temperatures in degree celsius ranging from 10 deg to 250 deg but i need to plot only the temperatures ranging from 20 and 70 degrees .
I'm just going to throw this out there while I'm waiting. For the moment, I'm going to assume that the image is a pseudocolor...

2 giorni fa | 0

Risposto
how to Scale the pixel values of the image so that the minimum value be- comes 0 and the maximum value becomes 255
You can do this with imadjust(). outpict = imadjust(inpict,stretchlim(inpict,0)); That will work for gray or RGB images of a...

3 giorni fa | 0

Risposto
Exact replication of a colorbar
I'm going to do this differently and attempt to reconstruct the original map from its approximate breakpoints, thus removing muc...

3 giorni fa | 2

Risposto
You need to pass the image as an input argument when you call your function -- just as is done in the question you posted. The ...

3 giorni fa | 0

Risposto
How do I generate a colorbar for NDVI?
I could be lazy and just assume that it's spring(). That said, if we can assume for a moment that the mapping is linear: A f...

4 giorni fa | 1

Risposto
i am trying to read a image file of format result.int that is integer image file not able to open with imread function
I'm going to assume that's an SGI black/white image. Since you didn't provide an example, I have no way of knowing that it's no...

4 giorni fa | 0

Risposto
Connect edges in image Matlab
Let's start with what the assignment apparently expected you to do. We can see that the isolated spade will be blob #2, so what...

4 giorni fa | 0

Risposto
How to change color in overlapping image ?
Imfuse() does support channel specification. That may suffice in some cases. % read the files frame1 = imread('https://www....

4 giorni fa | 0

Risposto
Surf plot of minimum values of four matrices
I don't know how you intend to get that plot from that data, but maybe your actual data has more resolution. ZCV=[1 2 1 2;6 5...

5 giorni fa | 0

| accettato

Risposto
How draw spline on image
This is how I would do it. Start by taking the image and converting it to a set of XY data describing each contour. You coul...

5 giorni fa | 0

Risposto
Creating a composite 2d image from multiple 2d arrays with a single colormap based on the intensity of each 2d array in each pixel
A given point in the image holds only three values. If you are superimposing more than three images, the color information must...

5 giorni fa | 0

| accettato

Risposto
Plot/Draw on image?
Avoid figure capture of images whenever possible. It's the same as taking a screenshot. The image will likely be resized and p...

5 giorni fa | 0

Risposto
How to show picture at specified relative position in a plot?
To insert an image does not require an overlaid axes. You can do it as in this example: https://www.mathworks.com/matlabcentra...

5 giorni fa | 0

Risposto
How to Place an image over existing plots?
This doesn't necessarily require creating another axes object. This can be done directly by setting xdata/ydata for image/image...

5 giorni fa | 0

Risposto
How to save an image with 3D info in 2D form and read the image in a way that not reducing quality?
Do not save images by displaying them and capturing the figure. That's the same as taking a screenshot. It generally will not ...

6 giorni fa | 0

Risposto
How to draw a rectangle on a image?
I'm going to guess that whatever the image was, it was either too small for the specified rectangle to be in-frame, or it was la...

6 giorni fa | 0

Risposto
Where to find changes in functions in Matlab versions?
The online release notes are maddeningly incomplete and slow, and trying to find the PDF RN is like some kind of ridiculous maze...

6 giorni fa | 0

Risposto
How can I draw ovals with insertshape?
According to the documentation for insertShape(), there is no such option for an oval, although I suppose you could consider a c...

7 giorni fa | 1

Risposto
how can i apply an oval mask to extract face region?
Oh well if you want an oval, you're in luck. This is one way to generate oval masks. inpict = imread('peppers.png'); [rows,...

7 giorni fa | 0

Risposto
How to automatically input function arguments?
Assuming that allcomb() takes a variable-length argument list, this is one way. % inputs n = 2; a = [1 2]; b = [3 4]; % c...

9 giorni fa | 0

| accettato

Risposto
count the number a letter appears in a string and plot a histogram
I'm sure there are text analysis tools for this, but here's one basic way. categories = 'ACGT'; % generate a test string ...

9 giorni fa | 0

Risposto
How to generate sinusoidal color fringes in MATLAB??
It's not clear to me how these are sinusoidal or even periodic. You can simply create an image like the one shown, but if yo...

10 giorni fa | 1

| accettato

Risposto
Matlab editor is not working
This seems to be common enough that other people have been bringing it up since last year. You can see if any of these threads ...

12 giorni fa | 0

| accettato

Risposto
searching for a line of pixels in an image
There are FEX submissions that are meant for this, but I have my opinions. This is my advice and an example of the basic appr...

12 giorni fa | 1

| accettato

Risposto
how do i assign a color to the same type of shape
It's no surprise OP got lost. That's an awful lot of duplicated code, unused code, and misleading variable names. I got lost. ...

13 giorni fa | 0

Risposto
Background color correction of a rgb picture
This looks more like a slightly off-normal camera position and a reflective surface. Either way, you don't operate on the fal...

14 giorni fa | 0

Risposto
Create a binary edge image of Malards.jpg using only the red channel of the image. Obtain the binary image with all edges that are stronger than 50 using Roberts edge detecti
The output of edge() is already a binary image (class 'logical'). There's no need to use imbinarize() on it.

15 giorni fa | 0

Risposto
Change Hair Color and apply the one picked by user
I didn't think about using histogram matching for that. MIMT imrecolor() was never made for this sort of thing, but I've been d...

15 giorni fa | 0