bugGNU Octave - Bugs: bug #66654, [octave forge] (image)...

 
 

bug #66654: [octave forge] (image) strel('disk', 1)

Submitter:  Liang Tang <lt1234>
Submitted:  Fri 10 Jan 2025 08:09:22 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 9.2.0 Release: 
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Feb 2025 05:42:08 PM UTC, comment #2: 

Hi, thanks for the response.  I would ask you to consider that the input option below in the document be removed. 

 Function File: strel ("disk", RADIUS)

Liang Tang <lt1234>
Mon 17 Feb 2025 05:17:35 PM UTC, comment #1: 

Thanks for this bug report, Liang Tang.

Unfortunatelly, this is known behavior of the image package, it is also properly documented in the help text of the strel function. Try "help strel" and read the text at "disk".

Currently the disk strel is only implemented in Octave without any decomposition in to sub-strels. So the only way to stay Matlab compatible was to force the user to put the 0 value into the strel command.

It would be a bigger task to implement strel decomposition (for runtime improvement) in the image package. So far noone has volunteerd to do this. Let me know if you are willing an capable to do this.

Otherwise I would suggest to close this bug report in a couple of weeks.


Hartmut <hardy>
Fri 10 Jan 2025 08:09:22 PM UTC, original submission:  


In command line help, we have

 -- Function File: strel ("disk", RADIUS)
 -- Function File: strel ("disk", RADIUS, N)
     Create disk shaped flat structuring element.  RADIUS must be a
     positive integer.

But in command window, we have an error message from the first input format.

strel('disk',1)
error: strel: N for disk shape not yet implemented, use N of 0
error: called from
    strel at line 257 column 9

This works:

strel('disk',1, 0)
ans =
  Flat STREL object with 5 neighbors

  Neighborhood:
  0  1  0
  1  1  1
  0  1  0

Liang Tang <lt1234>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-962f.
    Corresponding source code