
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. Since the IT clowns hosed the mail server config, I only check my email once every month or two. If you're sending me questions about the forum, you won't get an answer. If you're sending me questions about my own FEX submissions, feel free, but accept the likely delay. Alternatively, ask a question on the forum and @DGM me so I'll get notified.
Statistics
RANK
42
of 257 598
REPUTATION
4 147
CONTRIBUTIONS
28 Questions
1 602 Answers
ANSWER ACCEPTANCE
71.43%
VOTES RECEIVED
425
RANK
1 860 of 17 747
REPUTATION
910
AVERAGE RATING
5.00
CONTRIBUTIONS
9 Files
DOWNLOADS
192
ALL TIME DOWNLOADS
6074
RANK
of 109 882
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
How can I represent points and lines in 3 dimensions?
Either move the hold on statement after the first call to plot3(), or issue a view(3) command after plotting. Creating a pi...
environ 13 heures ago | 1
| accepted
How to scan matrix in spiral way?
There is a demo function that can generate NxN arrays in an outward spiral. That could be used (with some arithmetic and flips/...
environ 14 heures ago | 0
can someone help me with dithering ? I'm trying to do random dithering, I want to do halftone and pattern too, but I'm stuck at random
I don't know what your setPixel() and getPixel() functions are, or why you're incrementing a counter variable that's apparently ...
environ 21 heures ago | 0
hi ,I processed images on a folder. Now I want to save all the processed photos in the folder, but only the last photo is saved, what should I do?
Considering that there's missing code and open scopes, we're left to guess whether anything is inside of a loop or not. Either ...
1 jour ago | 1
How can I overlap two images/pictures in Matlab?
There's an awful lot of traffic on this question. I don't know that passers-by actually have the same intent, but let's assume ...
1 jour ago | 0
How to crop image by specific size and location ?
The rect parameter given to imcrop is [xoffset yoffset xwidth ywidth] I = imread('https://www.mathworks.com/matlabcentral/answe...
3 jours ago | 0
| accepted
Hi, can i know how to find the orientation of an object?
Well, here's this. It's not robust, but then again, the test image isn't a real process image either, so I'm going to consider ...
4 jours ago | 0
| accepted
How to make subplot size bigger?
Disregarding subplot arrangement, the edges are obscuring the faces due to the mesh resolution. figure colormap(parula(256))...
4 jours ago | 0
Combine masked images into one, with each mask having a unique color.
If those would work for you, then you might also consider something like these: % do a simple mean of colored frames % a set...
4 jours ago | 0
| accepted
removing some data in a 4d plot
You have to apply the same operation to all of the vectors. load 4dplot.txt x = X4dplot(:,1); ...
5 jours ago | 0
| accepted
Create Size 256 × 150 image that have 256 colors on it starting 0 till 255 (the first row is black, the last row is white, and in between all the gray shades).
Something like this: A = uint8(repmat((0:255).',[1 150])); imshow(A)
5 jours ago | 0
| accepted
How to count the number of pixels in each section of an image set?
Depending on what your images are like and what you need, this may be a start. You can calculate the number of true (nonzero) p...
5 jours ago | 0
Mirror about Y axis
Something like this: a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; plot(a,b); hax = gc...
5 jours ago | 0
| accepted
How does imresize() calculate the weights and indices for interpolation?
If I recall, this is essentially a windowed operation on a vector at this point, and you're finding the indices associated with ...
6 jours ago | 0
How can the image Processing of .tif file of size 763x1023x4 be done?
Imshow() can only represent 1-channel (grayscale) images or 3-channel images (represented as RGB). So whatever you do to disp...
6 jours ago | 1
| accepted
How to change text in plot follow colormap?
Consider the crude example: % you have some plots already plot(-0.5:4.5,0.5:5.5) cmap = winter(5); % use the colormap for ...
6 jours ago | 0
| accepted
How to find cumulative sum from from-to matrix?
From the other comment: A = [0 10 20 30; 40 0 50 60; 70 80 0 90; 100 110 120 0]; B = [1 2 3 4;2 4 3 1]; % x (1,2) (2,3) ...
7 jours ago | 0
please help me !!!
As mentioned in the comment you left, t is not a nonzero integer, so you can't use it as an index on the LHS of the assignment...
7 jours ago | 0
dominant color for an RGB image
For sake of alternatives, MIMT imstats() has a few options that might be of use here. While imstats can obviously calculate t...
7 jours ago | 0
How to draw a L*a*b* colour space or HSV colour space (2D)?
One thing that should be pointed out is that when plotting these things in a rectangular image, some consideration should be giv...
7 jours ago | 0
How to find cumulative sum in matrix?
Here is one way: A = [10 20 30; 40 50 60; 70 80 90]; B = [1 2 3; 2 3 1; 3 2 1]; nrows = size(A,1); C = cumsum(A((1:nrows)....
7 jours ago | 0
| accepted
GUIDE brightness/contrast function explained
I wouldn't say the code "works perfectly", since it doesn't do what is implied that it does -- though in its defense, its lack o...
8 jours ago | 0
How do I get the value of C and ws in adaptive thresholding?
You have to select them based on the image content and your own intent. Refer to the documentation: https://homepages.inf.ed.a...
8 jours ago | 0
add a moving image over a plotted trajectory
Assuming you actually want it to move in real time, this should be a start x = 0:pi/100:2*pi; y = sin(x); plot(x, y); hold on...
9 jours ago | 0
| accepted
How to calculate the total pixel value in volume segmentation
I'm not quite sure if this is what you're after, but this: pnz = nnz(P); will give you the total number of nonzero elements in...
9 jours ago | 0
| accepted
one of my nested functions isnt recognising a function made in another function? i know the codes messy and could be improved but i just want to make it work first
Since I don't even know how to call the function or what it's supposed to do, I can't really do much but point out problems and ...
13 jours ago | 0
How to access images(like Image1,Image2...)from a folder and pass through a code in Matlab?
You created a variable called imgName, but you're not using it. input_image = imread(imgName,'.jpg'); Of course, since this ...
13 jours ago | 0
How do I add "color" to an image?
There really isn't anything in base MATLAB or IPT for doing color adjustment. I'm not familiar with Photoshop, and don't have...
13 jours ago | 0
How can I change the color of the hair such that it has the same texture as the original hair?
There are a number of things going wrong here. I kind of wish this were active. Let's start with OP's example. Since the or...
13 jours ago | 0
pixelation
It can be simple enough: inpict = imread('peppers.png'); sz = size(inpict); blocksize = [10 10]; outpict = imresize(inpict...
14 jours ago | 0