area
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can I create a rectangle with a set area (for example a 1000) with imrect? I know you have the setResizable (h,TF) function, but I am looking for the kind of 'revert' version of this.
0 Commenti
Risposte (3)
Image Analyst
il 2 Gen 2012
Create it where? In an array? As a graphics object in the overlay above some plot or image? Solid rectangle, or just the perimeter?
0 Commenti
Walter Roberson
il 3 Gen 2012
I suspect you want to set a position constraint function; see http://www.mathworks.com/help/toolbox/images/ref/imroi.html#imroi-setposcon
Each time the function was called, you would return the adjusted Position of the rectangle.
You may wish to remember some past positions in order to figure out which direction the user is "mostly" trying to drag a side.
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!