Re: Running this MATLAB code in IDL [message #88448 is a reply to message #88436] |
Sun, 27 April 2014 18:00   |
mikejohnryan08
Messages: 5 Registered: April 2014
|
Junior Member |
|
|
On Thursday, April 24, 2014 4:25:25 PM UTC-4, Mike Galloy wrote:
> On 4/24/14, 4:39 AM, mikejohnryan08@gmail.com wrote:
>
>> Hello,
>
>>
>
>> What would be the best way to run this MATLAB code in IDL
>
>> (http://www.ee.cuhk.edu.hk/~snli/MATLAB_code.zip) which creates a 3d
>
>> red/blue anaglyph from two images?
>
>
>
> You want to launch Matlab and run your code? SPAWN is the only way I
>
> know of doing that.
>
>
>
> I have a very simple class to create red/cyan or red/blue anaglyphs in
>
> my library (github.com/mgalloy/mglib) at:
>
>
>
> https://github.com/mgalloy/mglib/blob/master/src/vis/objectg raphics/mggr3dconverter__define.pro
>
>
>
> Call the ::_combineImages method to create the anaglyph image. But if
>
> you already have the two images, there is not much to it -- I would just
>
> use my code as a guide and write your own.
>
>
>
>> Also, since this is a code from an academic source, would I be able
>
>> to use this to build onto for a more involved program for a masters
>
>> thesis as long as I source the code's author in my report?
>
>
>
> For questions like these, check the license of the code which is either
>
> in comments at the top of the code or in a LICENSE/COPYING/README type
>
> file. In your case, the code has this comment:
>
>
>
> %Copyright(c) 2013 Li Songnan
>
> %All Rights Reserved.
>
>
>
> Do not use, although you could always ask the author for special permission.
>
>
>
> Mike
>
> --
>
> Michael Galloy
>
> www.michaelgalloy.com
>
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
> Research Mathematician
>
> Tech-X Corporation
Thanks for the responses! I agree that it would not be a good idea to attempt using the MATLAB code in any way towards thesis research, and that it would be better to write my own simple IDL function to do this.
Mike, thanks for pointing me towards your code library. The "combineImages" method from your anaglyph class seems to be EXACTLY what I am trying to implement in IDL, and seems like it would be a very basic function; since as you said, I already have the left and right images. But since I am completely new to IDL, I can't even begin to think about how that method could be turned into a standalone function. It should be very basic, right?
Thanks again!
|
|
|