Using GUI to select part of image and providing values of 1 to the selected pixels

2 visualizaciones (últimos 30 días)
Dear all,
I would like to write a GUI function that is able to select a portion of the image and provide the pixels in that portion a value of 1 and at the other portions as 0. I understand it involves a whole set of commands for achieving it so a brief explaination of the steps to be taken, commands I can use and/or example codes would be helpful.
  3 comentarios
Janhavi Srirangaraj
Janhavi Srirangaraj el 7 de Jun. de 2019
Dear Geoff,
In principle I would like to create an algorithm that allows the user to select a region or draw a polygon on a region that they identify as flowers (I think the right word would be to annotate flowers and the background). This action is intended to iterate for a couple of times on a set of images that serve as the training set for a simple random forest classifier. From the annotation provided by the user, I want to assign regions identified as flower as 1 and the other regions as 0. I was thinking I could create two pop up windows, one time for selecting the flowers and then for the background.
Is this information sufficient?
Jan
Jan el 7 de Jun. de 2019
What have you tried so far? Do you want to create the GUI by code, by GUIDE or with the AppDesigner? Can you show us some example images? Do you have the Image Processing Toolbox? How should the selection work? By choosing a path with the mouse, a rectangle or polygone, B-splines or with an adaptive method to recognize similar colors or structures?
Currently the question is too general to be answered efficiently. The only matching answer would be to solve the complete problem, but you did not specifiy the details.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by