Answered
How to change NaN values of a matrix to 1 drawing a polygon
Try it this way: load('quest.mat') subplot(2, 2, 1); X(1) = 0; imshow(X, []); g = gcf; g.WindowState = 'maximized'; uiwai...

7 Tage ago | 0

Answered
how can i convert detected grayscale image object back into rgb form?
Use the Color Thresholder app on the apps tab of the tool ribbon. Load your image then choose HSV color space, then adjust the ...

7 Tage ago | 0

Answered
Find value between the overall maximum and its following minimum
If you have the Image Processing Toolbox you can use imregionalmax() and imregionalmin(): clc; % Clear the command window. ...

7 Tage ago | 0

Answered
Rotation of a function around the origin by any angle
This seems to work for me. I think you just didn't have your axes set up with equal scaling so it didn't look right. % Demo by...

7 Tage ago | 1

| accepted

Answered
sending 'result' as an input to a function
The answer is yes. if antall_salter_tilgjengelige==3 S={'NH4Cl'; 'MgCl2'; 'CaCl2'; 'KCl'; 'ZnSO4'; 'NaCl'; 'ZnBr2'; ...

7 Tage ago | 0

Answered
Subtracting in a structure
Try this: NumPass = 1; Pass(NumPass).TotalPlayers = [6,10,12,16,26]; firstNumber = Pass(NumPass).TotalPlayers(1); % Get the "...

7 Tage ago | 0

Answered
Find value between the overall maximum and its following minimum
To get the very next local min immediately following the max (at some particular index), I'd just "fall down" the signal until i...

7 Tage ago | 0

Answered
how calculate difference 5 adjacent pixels?
From your diagrams it looks like you want to scan your image with a 5x5 window, and have that window move in "jumps" of 5 pixels...

7 Tage ago | 0

Answered
Image processing of spray development and flame propagation using crop and background subtraction
Try imregister() if the frames are similar, just shifted. If you're comparing all frames to frame 0 and they're not similar bec...

7 Tage ago | 0

Answered
FIll contour of a binary matrix
How did you get that image? If you have the original (x,y) points of the dots used to create the image then you can just use po...

7 Tage ago | 0

Answered
how to extract objects from an image after filling in the objects in the binary image
How do you want to specify the objects? Like you're going to manually, interactively click on them? Or based on their size, sh...

7 Tage ago | 0

Answered
Separation of letters of license plates
Use ocr() in the Computer Vision Toolbox.

8 Tage ago | 0

Answered
HSV heatmap from RGB image
If you have a super low contrast RGB image with horrendous shading (light falling off from the center) as shown in your comment,...

8 Tage ago | 1

| accepted

Answered
How to find accuracy of a classification algorithm
Hmmmm...lots of problem with your code. First of all, you have no reliable ground truth. It's very dangerous to just assume a ...

8 Tage ago | 0

Answered
How to segment image to detect small worms?
Some tips: I would try to get a more uniform background, not one with a texture like you're using. I'd also increase the expo...

8 Tage ago | 0

Answered
How we can maximize PSNR between RGB image and binary(0,1) image?
I agree with what Yusuf and DGM said, especially DGM who came up with a clever solution. He should post it as his own answer so...

8 Tage ago | 0

Answered
How do you turn values in column A to NaN if values in column B are zero?
% If A and B are separate column vector variables: A(B==0) = nan; % or for an N-by-2 matrix m rowsToChange = m(:, 2) == 0; m...

9 Tage ago | 1

| accepted

Answered
my region filled image and skeletonized image just appears black.....
Why not simply use imfill()??? nFilled = imfill(n, 'holes');

10 Tage ago | 1

| accepted

Answered
How to draw mean value as shown in picture
Another option is sgolayfilt(). It's like movmean() but instead of fitting a line to the moving window you can fit a quadratic....

10 Tage ago | 1

| accepted

Answered
How to fast process conversion of .tif image sequence to an .avi video
It will be a lot faster if you don't display anything. So don't call imshow(), figure(), axis(), etc. Also I don't see any adv...

10 Tage ago | 0

Answered
Need some help on a MATLAB homework assignment.
I don't see the table() function being used anywhere. Didn't they say they wanted table variables only? Hint: vectorC = (0:2...

10 Tage ago | 0

Answered
How can I put names one by one using char()?
Try this: titleBar = 'Enter a name'; dialogBoxWidth = 100; caUserInput = {'a'} loopCounter = 1; maxIterations = 1000; list...

10 Tage ago | 0

Answered
Mysql will not install due to mariadb install but mariadb is not installed
If it's software from the Mathworks (not some third party company), then you can call them on the telephone and talk to a real l...

10 Tage ago | 0

Answered
How do I translate pixel coordinates to real world coordinates using a calibration target?
I think you can use scatteredInterpolant. Given a list of (xp, yp) pixel coordinates, and another separate list of real world (...

10 Tage ago | 1

Answered
why am I getting error?
Try it this way: % Demo by Image Analyst. clc; % Clear the command window. fprintf('Beginning to run %s.m ...\n', mfilenam...

10 Tage ago | 0

| accepted

Answered
How to add border to the figure?
@Lidia Frizzi, try this. Let me know if it's what you want: % Demo by Image Analyst. clc; % Clear the command window. clo...

10 Tage ago | 1

Answered
dilate and erode images produce black images?
You didn't use imbinarize correctly. Get rid of the 128. %b. Display original image, dilation image and erosion image within t...

10 Tage ago | 1

| accepted

Answered
dilate and erode images produce black images?
Try basic_gradient = imabsdiff(dilatedlung, erodedlung);

10 Tage ago | 0

Answered
particle tracking, image analysis.
The Computer Vision Toolbox has tracking capabilities. Look into it.

11 Tage ago | 1

| accepted

Answered
define different color for area
You can use the FaceColor optio: n = 10; Le = 10000; xn = linspace(0,Le,n+1); T = 89250-357*xn/20; taglio = area(xn,T, 'Fac...

11 Tage ago | 0

Load more