# 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**

RANG**38**

of 271 659

RÉPUTATION**4 937**

CONTRIBUTIONS

**31** Questions

**1 974** Réponses

ACCEPTATION DE VOS RÉPONSES **
64.52%
**

VOTES REÇUS**520**

RANG**1 500** of 18 321

RÉPUTATION**1 174**

CLASSEMENT MOYEN**5.00**

CONTRIBUTIONS**9** Fichiers

TÉLÉCHARGEMENTS **319**

ALL TIME TÉLÉCHARGEMENTS**7436**

CONTRIBUTIONS**0 Publications**

CONTRIBUTIONS**0** Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS**0** Point fort

NOMBRE MOYEN DE LIKES

**Content Feed**

I want to rotate the rotated image in the forward direction. How do I do this?

For this specific image, you could also try calculating the angles by finding certain features. For what it's worth: % the i...

environ 3 heures il y a | 0

how can I multiply two different size matrices in iterations like 7x7 and 4x4?

See these answers to a similar question: https://www.mathworks.com/matlabcentral/answers/1867698-shift-a-square-matrix-along-a-...

environ 5 heures il y a | 0

Crop and change perspective of image

You can use fitgeotrans() and imwarp(). It's a little more generalized, so it's not exactly a one-liner. Here is one example c...

environ 5 heures il y a | 1

| A accepté

How do I get pixel intensity values of images stored in an array ?

That would be correct, assuming that i is a real-valued integer between 1 and size(adj,3). The output will be the value at the ...

environ 8 heures il y a | 0

How can I put single quotes inside single quotes?

You can escape single quotes with another single quote. For sake of clarity, I'm going to transpose the output. vector = ['a...

environ 8 heures il y a | 0

| A accepté

Displaying 16 bit images

It's hard to know what you're doing wrong exactly since you didn't give a code example, but I'm going to guess. Imshow() will...

environ 12 heures il y a | 0

Same code I can successfully run in R2021b but in R2016a it is showing Error using - Matrix dimensions must agree. What should I change to run this in R2016a?

R2016b introduced implicit array expansion. You're relying on that. The loops are also unnecessary. i = 10; j = 5; r1 = 1; ...

environ 12 heures il y a | 0

| A accepté

Replace the image background

I don't know what you expect. Handing off your assignment in whole with zero effort shown on your part shouldn't be expected to...

environ 12 heures il y a | 0

Splitting a color image into sub-images only displays the yellow color

This is an issue of data class and scale. You're (implicitly) preallocating your output to a floating point class. Your input ...

1 jour il y a | 0

| A accepté

Shrink image without using imresize

Imresize() is currently available in the base toolbox, so you don't need IPT anymore. This change occurred somewhere after R201...

1 jour il y a | 0

I have x,y value and they form a polyline ,how can i find the slope of each line without putting any manual efforts?

If you have a polyline and want the slope or angle of each segment, consider the simple example: % vertices of a polyline (this...

2 jours il y a | 0

how to convert cell vector to char vector?

If there's little control over what's in the cell array, here's one way. This can probably be simplified. C = {1509; 1803; 'V2...

2 jours il y a | 0

Adding an image/chart as plot background

Here's one cheap way. You'll have to crop the image down. [inpict map] = imread('robertson_cropped.png'); inpict = ind2rgb(in...

2 jours il y a | 0

| A accepté

Index in position 1 exceeds array bounds (must not exceed 1)

It's unclear why you'd want to plot a bunch of constants, but this is apparently the same as what you're trying to do. T = 24; ...

2 jours il y a | 0

Circle with Alternating coloured segments

Here's one example. I'm sure this can be simplified. It's flexible enough that you can adapt it for different standard wheel c...

3 jours il y a | 1

| A accepté

Image quality loss when importing?

Use the recommended syntax for indexed images. [inpict map] = imread('MRI-brain-tumor-image.png'); imshow(inpict,map); The ...

3 jours il y a | 1

| A accepté

Issue with importing coloured image into MATLAB

@Image Analyst is right. The easiest way to know what's wrong is to attach an example of the image in question and show how you...

3 jours il y a | 0

How can I set the values of matrix in interval <a, b>?

Start with: m = 500; n = 500; rrange = [4 9]; mn = 8; vr = 3; % uniform distribution with a specified range Ru = rran...

4 jours il y a | 0

| A accepté

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

5 jours il y a | 0

| A accepté

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

5 jours il y a | 0

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

6 jours il y a | 0

| A accepté

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

6 jours il y a | 0

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

7 jours il y a | 0

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

7 jours il y a | 0

can someone help me with a matlab code that read a gray scale image and generate the flipped image of the original image without using the inbuilt function (ike flipud and the rotate comman) as shown below

See: https://www.mathworks.com/matlabcentral/answers/702422-code-with-out-using-loops

7 jours il y a | 0

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

8 jours il y a | 0

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

8 jours il y a | 0

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

8 jours il y a | 0

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()...

8 jours il y a | 1

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

8 jours il y a | 0

| A accepté