eror: rgb2gray undefined in Octave 4.2.2

后端 未结 1 385
清歌不尽
清歌不尽 2021-01-29 03:51

I am new to Octave platform and am trying the image tool for image processing version-2.8.0. I have installed this tool using \'pkg install -forge image\'. It installed perfectl

相关标签:
1条回答
  • 2021-01-29 04:15

    The image package decides at install time whether it should install the rgb2gray function or not. Octave 4.4 includes an implementation of rgb2gray so the image package at install time does the following:

    1. start Octave in another process (octave -qf)
    2. check if the rgb2gray exists in this new process
    3. adds rgb2gray to list of functions to install, only if function is missing

    This means that if starting a new Octave process when you installed the package had such a symbol, then you might end up with the image package without the function. I'm not sure how that could happen since the check is done after starting octave without reading any initialization file.

    One possibility is if you have some hack in Octave to automatically load the image package and that installation of the image package you done was an upgrade.

    Solution: uninstall and then install the image package.

    0 讨论(0)
提交回复
热议问题