Suppose i have to extract the area circled in white from the attached image. How can i do that in MATLAB?
I want to create an automatic way so that when i input different images, it extracts exactly the same area.
If you load an image into matlab, the data is stored in a matrix. You can then just extract a sub-matrix of the area you are interested in.
You can create a binary mask where it has 1 for a required pixel (pixels in circle area) and 0 for a non required pixel(pixels outside the circle).
Then you can just multiply the image with mask and get the required area.
% You can Mask the image using bsxfun() function maskedRgbImage = bsxfun(@times, rgbImage, cast(mask, 'like', rgbImage));
also have a look at this
https://in.mathworks.com/matlabcentral/answers/341305-how-to-impose-binary-mask-on-rgb-color-image
If you know center pixel coordinates (i.e. which pixel is you center for a circle) then you can just use a simple function to create structuring element in matlab.
strel('disk',r); where 'r' is radius of your circle.
I need a material that i can use as a background, so that when i take thermal images it appears black in colour? Any suggestions? Thanks.
01 February 2018 1,103 3 View
I have been doing the m6A dot blot for a while with no improvement, I am extracting the RNA, and I can see the dots although the three biological replicas give a different reading on the memberan...
10 August 2024 8,539 5 View
How can I use the cif data obtained from rietveld refinement extracted via gsas2, for microstructural analysis using ETEX software?
09 August 2024 7,718 0 View
After immunohistochemistry of previously fixed in PFA and EtOH and then frozen 20 μm sections of zebrafish brain, DAPI staining is very weak (right) compared to the same sections stained without...
05 August 2024 9,637 2 View
Palmitic acid presence in aqueous fraction
05 August 2024 8,624 4 View
Hi everyone I need a file with a dirty and clean potato image
04 August 2024 7,199 4 View
I work on MCF7 cell cell for anticaner purpose and I wa to do drug preperation the drug ( secondary metabolites extracted from Aspergillus) My question which solvent is better with these secodary...
03 August 2024 4,725 2 View
I fabricated Ti3C2Tx using concentrated HF 40%, I plot an XRD as attached image below.. please let to know if I obtained it or not.
02 August 2024 6,789 4 View
I am conducting a systematic review and meta analysis; as I am extracting data I realized there is a consort diagram that shows the number of patients from randomization till end of the study. So...
01 August 2024 9,993 3 View
99% pure ethanol was used for maceration also alternate methods along with the temperature and time to concentrate the extract can be specified
31 July 2024 5,113 4 View
We conducted an antibacterial study of a plant extract. Varying concentrations of crude extract were subjected to microbroth dilution assay. The result showed that only the lowest concentration of...
31 July 2024 8,666 3 View