octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Package for level-set method?


From: Daniel Kraft
Subject: Re: Package for level-set method?
Date: Fri, 9 May 2014 14:22:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi!

On 2014-05-09 14:02, Juan Pablo Carbajal wrote:
> Richard's answer is a solution, you can go system specific by doing
> # Option 1
> installed_pkgs_lst = pkg("list");
> pkg_folder = installed_pkgs_lst (cellfun(@(x) ismember (x.name,
> {"level-set"}), installed_pkgs_lst, "unif", true)){1}.dir
> 
> # Option 2
> #pkg_data = pkg ("describe","level-set"){1};
> #pkg_name = [pkg_data.name "-" pkg_data.version];
> #pkg_folder = fullfile (pkg("prefix") , pkg_name)
> 
> imgfile = fullfile (pkg_folder,"maze.png");
> 
> Option 1 is probably the safest. You can check existence with function 
> "exists"

Honestly, this still seems very complicated for a seemingly trivial task
(supplying example data files for demos).  But I've now rewritten the
code to use option 1 (although with a loop to make it easier to read)
and removed the __levelset_getdir function entirely.

As I see it, the remaining issue to fix is now the internal files.  I've
left the Makefile untouched for now.  But when you know whether or not
private architecture-dependent functions are possible, I will either

a) use them if they are,

b) rename the files to __levelset_-names to keep them "private" even if
this is not actually possible but get rid of the Makefile hack.

Is this a good solution?

BTW, I won't be available from now until Monday, but will try to resolve
this issue then.

Thank you very much for your help!

Yours,
Daniel

-- 
http://www.domob.eu/
OpenPGP: 901C 5216 0537 1D2A F071  5A0E 4D94 6EED 04F7 CF52
Namecoin: id/domob -> https://nameid.org/?name=domob
--
Done:  Arc-Bar-Cav-Hea-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Mon-Pri

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]