patchGNU Octave - Patches: patch #9509, [octave forge] (image) simple...

 
 

patch #9509: [octave forge] (image) simple implementation of roipoly function

Submitted by:  None
Submitted on:  Sat 02 Dec 2017 05:25:54 AM UTC  
Votes:  1  
 
Category:  Forge : new function Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 15 Feb 2020 02:55:04 PM UTC, comment #1: 

There is an error at line 53: BW = inpolygon(x, y, xv, yv);
which should be the following 2 lines:
BW = inpolygon(x, y, yv, xv);
BW = BW';

original submission:

> This is a first attempt at implementing the roipoly function.
>
> The function works in two modes:
> - When three arguments are passed (img, xv, yv), rasterize the polygon
>   delimited by the (xv, yv) points into an image with the same
>   dimensions as img.
> - When a single argument is passed (img), display the image in a new
>   figure and let the user interactively select the (xv, yv) coordinates
>   before performing the rasterization.
>
> The interactive GUI is currently extremely simple: left click to add a
> point, middle click to suppress the last point and right click to
> terminate the interactive session.

(file #48417)

Kai ZHANG <zhangesn>
Sat 02 Dec 2017 05:25:54 AM UTC, original submission:  

This is a first attempt at implementing the roipoly function.

The function works in two modes:
- When three arguments are passed (img, xv, yv), rasterize the polygon
  delimited by the (xv, yv) points into an image with the same
  dimensions as img.
- When a single argument is passed (img), display the image in a new
  figure and let the user interactively select the (xv, yv) coordinates
  before performing the rasterization.

The interactive GUI is currently extremely simple: left click to add a
point, middle click to suppress the last point and right click to
terminate the interactive session.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #48417:  roipoly.m added by zhangesn (2KiB - text/x-objcsrc)
file #42550:  roipoly.m added by None (2KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zhangesn (Updated the item)
  • -email is unavailable- added by zhangesn (Voted in favor of this item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-15 zhangesn Attached File- => Added roipoly.m, #48417
        Carbon-Copy- => Added zhangesn
    2019-03-07 mtmiller SummaryImage package: simple implementation of roipoly function => [octave forge] (image) simple implementation of roipoly function
    2017-12-02 None Attached File- => Added roipoly.m, #42550

    Back to the top


    Powered by Savane 3.5