Selecting multiple ROI in images for processing

22 vues (au cours des 30 derniers jours)
Vivek le 9 Août 2022
I would like to select multiple rectangular regions in an image and would like to plot the selected 2D region's as 1D plots.How can I do this in matlab. Also is there a easy way to use the same ROI on multiple images.
  2 commentaires
萌萌 le 9 Août 2022
How can we use matlab to transform an image into short lines in the length of micrometers,
all short lines will represent the grayscale, or maybe the lightness of the image,
after we get the short lines file, we will use it for etching out textures.
Thank you.

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 9 Août 2022
Modifié(e) : Image Analyst le 9 Août 2022
  7 commentaires
Muhammad Mubeen Tariq
Muhammad Mubeen Tariq le 7 Déc 2022
Modifié(e) : Muhammad Mubeen Tariq le 7 Déc 2022
@Image Analyst Hello Sir! Thank you so much for replying. Basically, there is picture of bubble sheet (like used in exams) which contains about 10 to 20 MCQs based bubble options. Each option has 4 bubbles, one bubble filled and other 3 are empty. I need any method or code by which i can pick only filled bubbles from picture because i have to apply ink mismatch on those bubbles to detect ink forgery. If i use your codes provided above, i have to manually select those filled bubbles and it would be very difficult to select ROI on 10 to 20 bubbles. Please can you help me little bit, i would be very thankful to you. If you have any mail or social media where i can contact you and could explain the whole scenario in detail. Hoping for positive response.

Connectez-vous pour commenter.

Plus de réponses (2)

yanqi liu
yanqi liu le 9 Août 2022
yes,sir,may be use roipoly to make shape,such as
im = imread('cameraman.tif');
figure; imshow(im); hold on;
pts = [];
while 1
[bw,xi,yi] = roipoly(im);
hold on;
pts{end+1} = [xi(:) yi(:)];
plot(xi(:), yi(:), 'r-');
tm = [];
for i = 1 : length(xi)-1
tm=[tm; xi(i) yi(i) xi(i+1) yi(i+1)];
choice = questdlg('break?', ...
'break', ...
switch choice
case 'Yes'
case 'No'
when we run,we can get

Image Analyst
Image Analyst le 7 Déc 2022
To analyze an optical mark test sheet, see attached demo.


En savoir plus sur Data Distribution Plots dans Help Center et File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by