Answered
Index Out of Bound for 1x1 Array
Well the format might need to be consistent. You seem to have multiple images in there (not sure how many) and they can have di...

12 days ago | 0

Answered
How can I remove unnecessary reflections in a image after background subtraction
% Remove blobs smaller than 100 pixels in the image BinaryImage = bwareaopen(BinaryImage, 100); Or, if you just want to take t...

12 days ago | 0

| accepted

Answered
Remove object from plot
Attach 3 or 4 of the images with paperclip icon. We ca't run your code without it. I have done this before where a tube is dri...

12 days ago | 0

| accepted

Answered
I am a beginner-level programmer. Kindly help me to count the number of images from multiple folders at once
Do you want the count broken down by how many are in each folder? Or do you just want to count the numbre in each folder and gi...

12 days ago | 1

Answered
Unrecognized function or variable 'gca'
This script works fine for me plot(1:10) f() function f() fprintf('In f().\n') gca end Are you sure you actually have an ...

12 days ago | 0

Answered
Color recognition using a computer camera
You can look at the Color Thresholder on the Apps tab of the tool ribbon. Or else click on the "Color segmentation" tag on the ...

12 days ago | 0

Answered
Tell the user something is wrong
To check if a folder exists, where folder is your variable name, and alert the user if the folder does not exist, use isfolder()...

12 days ago | 0

Answered
How can i solve this probability problem
Did you want to do it via a Monte Carlo simulation, or via built-in functions? If you want a Monte Carlo simulation, here is a ...

13 days ago | 0

| accepted

Answered
Calculating the shortest distance of any given coordinate point to the line y=3x+2
See my attached point-to-line demo.

13 days ago | 0

Answered
How can I do non-contact hemoglobin measurement with matlab using 30 sec videos.
This is a challenging project - you don't even know what you're in for. For example you don't seem to know that you need to cal...

13 days ago | 1

Answered
xls read multiple files into one script; Only reading last file
You're overwriting alldata each time. You probably want to append onto it. Instead of alldata = data_in(:,:); % Overwrite all...

13 days ago | 0

Answered
How to distribute lot of rings evenly over an image?
Something like numCircles = 20; xCenter = xMax * rand(numCircles, 1); yCenter = yMax * rand(numCircles, 1); radius = 30 * on...

13 days ago | 1

| accepted

Answered
How to Find the image gradient and magnitude and angle. I’ve attached the 2pic, tells which is foreground & background needs to remove for process. thanks
Try calling imregister() to align your perfect, reference image, and your test image. Then subtract and threshold.

13 days ago | 0

Answered
Detecting circular shaped fruit in 2D images using circular Hough transform or alternative algorithm
You don't need to find circular shapes. From your other posts, you're trying to find oranges on a tree. The oranges are almost...

13 days ago | 0

Answered
How can I close an App Designer App programmatically?
If you want to close it programmatically from an "Exit" button you have placed on the window, you can call the delete method of ...

13 days ago | 0

Answered
How to Find the image gradient and magnitude and angle. I’ve attached the 2pic, tells which is foreground & background needs to remove for process. thanks
There are imgradient() and imgradientxy() functions. I'm not sure what is background in the images. There are lots of regions ...

13 days ago | 1

Answered
How to make circle in matrix form
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle.3F

13 days ago | 0

Answered
segmenting the lung region
Try mask = imclearborder(mask); % Get rid of blobs touching the edge of the image. mask = bwareafilt(mask, 2); % Take the larg...

13 days ago | 1

| accepted

Answered
i know the scale but when i use imagesc function the image doesnt show me the right size of my spot. what am i doing wrong?
PhaseData is structure. you need the Data field theImage = PhaseData.Data;

14 days ago | 0

| accepted

Answered
Save an image from a matrix
To save a floating point image as a TIFF format file: % Create floating point image. rgbImage = rand (10, 20, 3); % Image mus...

14 days ago | 0

Answered
How to save a matix as an image?
To save a floating point image as a TIFF file, this should do it. % Create floating point image. rgbImage = rand (10, 20, 3); ...

14 days ago | 0

| accepted

Answered
How to assign different colors for data in different rows from a dataframe?
Maybe something like untested % letters = T{:, 1}; % x = T{:, 2}; % y = T{:, 3}; letters = {'A'; 'A'; 'B'; 'B'} numUniqueLe...

14 days ago | 0

| accepted

Answered
How to save information from a for loop
What is b? It shows b in the error but I don't see it in your code. You might have to attach your entire m-file. Maybe try b...

14 days ago | 0

Answered
achieving a weighted inpolygon function
Not sure I understand. A diagram would help. All I can guess is that the bwdist() function, to get the Euclidean distance fr...

14 days ago | 1

Answered
How can i call the first point that appears in a matrix with a certain value?
"I tried this way however once there is more than one 6 in the matrix firstappearence value would be incorrect." So, if you wan...

14 days ago | 0

Answered
I need to contour a round object in a image.
Once you've gotten the largest blob, if you want to outline the region in red over the original image (in the overlay), you can ...

14 days ago | 1

Answered
get segmentation size image
Try getting the bounding box of the convex hull. mask = bwconvhull(mask, 'union'); props = regionprops(mask, 'BoundingBox'); ...

14 days ago | 0

Answered
Create polynomials in MATLAB
Did you try to just type it out, like dv = 3; x = [1, 2] % Whatever.... lamdaVector = [0.6, 0.4]; lambda = 0; for k = 1 : d...

15 days ago | 0

Answered
detecting elements change in an array
Try this: x=zeros(1,36); % Get 20 random indexes to turn to 1's. indexes = sort(randperm(length(x), 20)); % Initialize by tu...

15 days ago | 0

Answered
How to save a matix as an image?
Save it as a .mat file instead of an image format file save('my floating point image.mat', 'myImage'); % Save myImage into a .m...

15 days ago | 1

Load more