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

Topics - alm865

#1
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!
#2
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!