photo

DGM


Last seen: Today 自 2015 起处于活动状态

Followers: 11   Following: 0

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.

统计学

All
  • 36 Month Streak
  • Thankful Level 5
  • Solver
  • Personal Best Downloads Level 4
  • GitHub Submissions Level 3
  • Editor's pick for Answers
  • Most Accepted 2022
  • Ace
  • Most Accepted 2021
  • 5-Star Galaxy Level 4
  • Revival Level 3
  • Knowledgeable Level 5

查看徽章

Feeds

排序方式:

已回答
How to fill a large hole?
I don't have the original image, but I'm going to assume that your image is RGB. Use im2gray() to make sure that the incoming i...

2 days 前 | 1

| 已接受

已回答
Extract individual curve from a multiple curve plot
This is the garbage I put together. It could stand to be cleaned up, but it still has problems. It seems to sort data and fill...

3 days 前 | 0

已回答
Extract individual curve from a multiple curve plot
This is probably fragile and overcomplicated, but eh. % the data load data.mat x = data(:,1); y = data(:,2); %scatter(x,y,'...

5 days 前 | 0

已回答
Drawing bounding box onto an image without imshow and hold on ...
Just because I felt like doing it my way. % any image inpict = imread('peppers.png'); % some 2D logical mask of the same p...

11 days 前 | 0

已回答
How can I change each pixel value in a cluster using k-means algorithm to different colors
Create a label array from the segmentation. Create a color table associating each label to a desired color -- either the mean c...

19 days 前 | 0

已回答
how to crop a binary mask to remove all black pixels while maintaining the largest area of white pixels?
Using this tool from the FEX: https://www.mathworks.com/matlabcentral/fileexchange/71491-largest-inscribed-rectangle-square-or-...

20 days 前 | 0

已回答
how to crop a binary mask to remove all black pixels while maintaining the largest area of white pixels?
Another way. This is essentially the same as Walter's example, but it's rolled up as a convenient function. It can crop simple...

20 days 前 | 0

已回答
How to give Gray color histogram gray shade instead of blue
I slightly disagree with using the bar/stem colors to denote the color represented by each channel. It's nice to color-code thi...

21 days 前 | 1

| 已接受

已回答
Analyze intensity of a specific region.
If you just want basic color statistics within a region: % a color image inpict = imread('image.jpeg'); % reduce it to some...

22 days 前 | 0

已回答
How to map each pixel in the image from the colour bar and assign temperature to the pixel from the colour bar
There are now quite a few examples of this on the forum. Here's another. % the image inpict = imread('image.jpeg'); imshow(i...

26 days 前 | 0

已回答
How to count the amount of small squares in this picture?
The given answers have problems with accuracy. One way to help with discrimination is to do some sort of template matching. ...

29 days 前 | 1

| 已接受

已回答
How to randomly select the datapoints in a vector based on percentage for each group?
There has to be a smarter way than this, but I guess this is one idea. % some fake data x = randn(1000,1); % the percentile...

1 month 前 | 0

已回答
Digital image processing.
It's not clear what is expected by rotating an image without changing its size or resolution. What does "size" mean in this con...

1 month 前 | 0

已回答
Error in computing median filter and histogram equalization on an image. How can i solve it?
The image is a JPG, and most JPGs are RGB. fname = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/280425/1a.jp...

1 month 前 | 0

已回答
how to remove error ??? Error using ==> iptcheckinput Function MEDFILT2 expected its first input, A, to be two-dimensional. Error in ==> medfilt2>parse_inputs at 109 iptcheckinput(a, {'numeric','logical'}, {'2d','real'}, mfilename, 'A', 1); Error i
The image is a JPG. Most JPGs are RGB. Medfilt2() only accepts a single-channel input. You either need to make the input sing...

1 month 前 | 0

| 已接受

已回答
How can we apply a gaussian noise to a image?
If you want to add Gaussian noise to an image, just use imnoise(). That way, there's no need to jump through extra hoops to deal...

1 month 前 | 0

已回答
How do i zoom imhist?
I see two potential needs here. Scaling YLim and possibly scaling XLim Adjusting YLim: The most common is probably a need t...

1 month 前 | 0

已回答
How to create axes in the center of an image and calculate angles between the points in an image?
There's no need to use manual transcription of a plot. Use the points that have already been found. Here is a hypothetical rec...

1 month 前 | 0

已回答
Average distance between nearest neighbors of grain boundaries
Maybe a start, maybe not: % the image as a logical mask inpict = imread('unettestfile.png')>128; % if we're not going to fi...

1 month 前 | 0

已回答
Why does imagesc show different outputs for the same input matrix?
The problem is the ydata spacing is not uniform between the two sets. Tools like image(), imagesc(), and imshow() don't use all...

1 month 前 | 1

| 已接受

已回答
Controlling colors in scatter plots
This is what I threw together, but there's probably a better way to do this; I haven't really used gscatter() for anything befo...

2 months 前 | 0

| 已接受

已回答
Big Tiff Grayscale image looks unsharp/ Grayvalue is not shown properly
It's hard to know without seeing the image. A TIFF can contain just about anything. It can be on an odd numeric scale. It can...

2 months 前 | 0

| 已接受

已回答
Are there MATLAB functions or scripts to perform boolean operations on triangulated solids?
If your solids can each be expressed as a manifold STL, then I don't see why you can't use external tools to do the job. I norm...

2 months 前 | 0

| 已接受

已回答
Finding contiguous regions of interest in a mask and calculating the mean values of those regions when the mask is applied to an array
You have a mask and a (assumed) grayscale image. Here are three ways: % a grayscale image and a logical mask of the same geome...

2 months 前 | 1

已回答
Can I digitized color map into contour values according to it color bar?
No, not accurately. There are a number of problems. You can try anyway. Filled contour plots are ambiguous. The only parts...

2 months 前 | 1

| 已接受

已回答
capture focus change of a figure
This is based on the examples given in the comments. I've tested it in R2015b and R2019b, so I'm assuming it would have worked ...

2 months 前 | 0

已回答
How to move figure window to front of all programs?
If you want the window to stay on top even if other windows are given focus, you can set that in the window manager. % you have...

2 months 前 | 0

已回答
image edge detection result
There are some tools for creating DXF files https://www.mathworks.com/matlabcentral/fileexchange/33884-dxflib ... but they're ...

2 months 前 | 0

| 已接受

已回答
How can the objects touching the boundary of the ROI polygon in an image be removed in Matlab?
You might want to use imclearborder(), but that's not what imclearborder() does. If you have logical masks, then: % say you ha...

3 months 前 | 0

已回答
decoding of bitstream in image processing?
There are four possible transition states, but only three are (confusingly/incorrectly) described. Assuming the following: a 0...

3 months 前 | 0

加载更多