Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - alm865

#1
If you don't have easy access to MATLAB you can always do a google search:

https://www.google.com.au/search?q=%3FIndex.of%3F+(ISO)+Matlab

I don't think Mathworks lets you download a trial version of Matlab these days unfortunately...
#2
Share Your Photos / Focus Stacking and 3D Effect
May 16, 2014, 05:24:24 AM
Hi All,

After using Picolay (http://www.picolay.de/) and CombineZP for focus stacking and creating a 3D effect from a stack I couldn't help but think that it could be done better (especially the 3D effect part since Hugin already does a fantastic job of the focus stacking part :) ).

So I went and created this MATLAB script to create a 3D effect from a focus stack:

https://www.dropbox.com/s/hcf4b3n98yvxeo5/AM%20Focus%20Stacking.7z

There are sample images, if you have MATLAB simply open the script up and run it!

There is plenty of room for improvement but the initial results are promising. There is potential to create a 3D model from the stack too and the ability for the user to modify and fix the stack in an external paint program (i.e. write 'StackClip' to a .bmp, modify and read it back into the script)

A sample animation from my script is here:



I'm sure people can see many flaws in my script but for a first pass it works rather well.

Over the next few months I'll write a C++ program with a GUI to perform the same operations and make it more user friendly. I'll share the source code once I'm done!
#3
Scripting Q&A / Re: Help with my first script
December 05, 2013, 11:32:44 PM
Quotethe intervalometer will give you more acurate timing

Ah okay, I wasn't sure whether it was terrible accurate or not, or whether it took taking the picture into account. Battery is not an issue in my case, I have an external power supply hooked up to my 60D so my battery life is several days, filling up the SD card is more of an issue in my case.

QuoteBTW, I would strongly recommend you doing intervals of at least 30s for an all night timelapse

I've found 30second intervals works well on a clear night with no cloud too. I like using 8seconds exposures to capture the low fast moving cloud also (watching the clouds form and dissappear and flow over each other looks awesome!), but ofcause you don't see the level of detail in the stars (more particular the Milky Way) than you would in an 30 second exposure.

http://youtu.be/AB4p5Bf8-K4

Quotethe camera has builtin circuitry that will automatically shut it off at a certain temperature

Good to know, I didn't want to point my camera at the sun and end up with a whole heap of dead pixels.


Thanks again for your help dmilligan!
#4
Scripting Q&A / Re: Help with my first script
December 05, 2013, 04:39:16 AM
Also, thanks for the help with the code. I was hoping it would behave more like the time_t function in C++.

Comparing each element of the structure in nested if's should work too though :)

#5
Scripting Q&A / Re: Help with my first script
December 05, 2013, 04:37:07 AM
I would love to use something already inbuilt into Magic Lantern but there is no way to set an exact time to stop taking pictures. You can say stop after 1000 pictures but you can't say turn off camera or stop taking pics after exactly 8hours 35mins for example.

Also the only position I can use the camera in is directly pointing at where the sun rises, which I beleive is bad for the camera. I'd like the camera to stop taking pictures at the exact time the sun rises. As far as I can tell, ML can't do this.

Also I've just found out that the latest version of ML doesn't support PicoC anymore :(
#6
Scripting Q&A / Help with my first script
December 03, 2013, 06:17:14 AM
Hi All,

I'm trying to do the following:
- Manually set camera settings on camera (8sec exposure, iso, etc)
- Run my script
- Constantly take pictures for x hours until the timer runs out then stop taking pictures

Here is my script:
/*
@title My First Script
@param take pics for 1 hour
*/

printf("Hello from PicoC!\n");

struct tm * t2 = get_time();
struct tm * t = get_time();
t2->hour=t2->hour+1;

sleep(2);
int k=0;
while (k==0)
{
    printf("Taking pic");
   
t = get_time();

if (t>=t2) {
k=1;
}

    takepic();
}

printf("Done :)\n");


So have I wrote this script correctly?

Will takepic(); wait until the shutter closes again?

Does anyone see any problems with my script?

Basically I want to set my camera up taking 8 second exposures at night until just before the sun rises and fries my camera.

Thanks in advance!