Skip to content

Matlab: DIPimage shadows Matlab toolbox functions #174

Answered by crisluengo
AndreZeug asked this question in General
Discussion options

You must be logged in to vote

Take a look at the answer at the bottom here: https://diplib.org/diplib-docs/sec_dum_faq.html#sec_dum_faq_usage_select

Name clashes are inevitable in a language without namespaces, which MATLAB was when we created DIPimage. We avoided using names of existing functions in the toolboxes most relevant to image processing, but that's a moving target, they keep adding new functions and new toolboxes. MATLAB does have namespaces nowadays, but adding a namespace to the DIPimage toolbox is akin to changing all function names, which we don't want to do for backwards-compatibility.

So the only thing we can do is show how to call a shadowed function: change directories first:

old_dir = cd('C:\Progra…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crisluengo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #167 on November 25, 2024 18:49.