Difference: HDRCameraProject (1 vs. 8)

Revision 82009-07-20 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 30 to 30
  Note:
Changed:
<
<
1) Unless you're doing homography on only a few frames ( by a few, I mean less than 5 ), I'd suggest to resize the mda first. Thirteen 1920x1080 frames took me almost two hours to run and eventually abort. It will be a lot faster to process one frame at a time.
>
>
1) Unless you're doing homography on only a few frames ( by a few, I mean single digit number ), IMO, the best way to do it is to write a script, so that mda-homography process one frame at a time and write output to each file.
  2) Depends on whether or not you flip one of the image/video before computing the homography matrix, the steps can be a little different. We assume one of the image ( cam1.jpg or cam2.jpg ) is flipped. If not, just comment out the flip function call in hdrcamalign.m.

Revision 72009-07-20 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 28 to 28
  3. In terminal, enter "mda-homography metadata.xml < cam1.mda > cam1_out.mda"
Added:
>
>
Note:

1) Unless you're doing homography on only a few frames ( by a few, I mean less than 5 ), I'd suggest to resize the mda first. Thirteen 1920x1080 frames took me almost two hours to run and eventually abort. It will be a lot faster to process one frame at a time.

2) Depends on whether or not you flip one of the image/video before computing the homography matrix, the steps can be a little different. We assume one of the image ( cam1.jpg or cam2.jpg ) is flipped. If not, just comment out the flip function call in hdrcamalign.m.

3) When running mda-homography, if you see the error: "terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted" It means that the mda files is too big that your computer runs out of memory when processing it. Try to resize it or process fewer frames at a time.

 

Temporal Figure Alignment

Line: 50 to 62
 
META FILEATTACHMENT attr="" comment="HDRCamera Project Documentation" date="1247779139" name="HDRCamera_Project.pdf" path="HDRCamera_Project.pdf" size="75389" user="lancefu" version="1.2"
META FILEATTACHMENT attr="" comment="put index on each frame in an image sequence" date="1247732690" name="im_putIndex" path="im_putIndex" size="1706" user="lancefu" version="1.1"
Deleted:
<
<
META FILEATTACHMENT attr="" comment="HDRCamAlign Matlab Scripts" date="1247732855" name="HDRCamAlign.zip" path="HDRCamAlign.zip" size="4062253" user="lancefu" version="1.1"

Revision 62009-07-16 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 28 to 28
  3. In terminal, enter "mda-homography metadata.xml < cam1.mda > cam1_out.mda"
Added:
>
>

Temporal Figure Alignment

1. Run im_putIndex on both mda files. Identify which camera starts shooting first and starting which frame both images are synchronized. Record the frame number.

2. Run mda-cutframe to cut the unsynchronized frames out of the mda file.

 Note:

1) HDRCamera_Project.pdf is included here to explain more in-depth.

Changed:
<
<
2) im_putIndex is a shell script I wrote to put index on each frame in an image sequence. The purpose of it is to ease the trouble identifying the first synchronized frame, so you can see the image and then crop the mda file directly knowing where to cut.
>
>
2) im_putIndex is a shell script I wrote to put index on each frame in an image sequence. The purpose of it is to ease the trouble identifying the first synchronized frame, so you can see the image and then crop the mda file directly knowing where to cut. Usage: im_putIndex mdaFileName
 

Revision 52009-07-16 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 40 to 40
  -- Main.rachteo - 14 Jul 2009
Changed:
<
<
META FILEATTACHMENT attr="" comment="HDRCamera Project Documentation for mda-homography" date="1247732437" name="HDRCamera_Project.pdf" path="HDRCamera_Project.pdf" size="38553" user="lancefu" version="1.1"
>
>
META FILEATTACHMENT attr="" comment="HDRCamera Project Documentation" date="1247779139" name="HDRCamera_Project.pdf" path="HDRCamera_Project.pdf" size="75389" user="lancefu" version="1.2"
 
META FILEATTACHMENT attr="" comment="put index on each frame in an image sequence" date="1247732690" name="im_putIndex" path="im_putIndex" size="1706" user="lancefu" version="1.1"
META FILEATTACHMENT attr="" comment="HDRCamAlign Matlab Scripts" date="1247732855" name="HDRCamAlign.zip" path="HDRCamAlign.zip" size="4062253" user="lancefu" version="1.1"

Revision 42009-07-16 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 24 to 24
  1. Once you have two mda files, let's call them cam1.mda and cam2.mda, one from each camera, extract one frame from each of them with full checkerboard in sight, rename them to cam1.jpg and cam2.jpg.
Changed:
<
<
2. Copy image files to where you store the HDRCamAlign Matlab scripts, run Matlab and and run hdrcamaligh. metadata.xml is automatically generated by running hdrcamalign. Move file to where two mda files are.
>
>
2. Copy image files to where you store the HDRCamAlign Matlab scripts, run Matlab and and enter hdrcamalign. metadata.xml is automatically generated by running hdrcamalign. Move file to where two mda files are.
  3. In terminal, enter "mda-homography metadata.xml < cam1.mda > cam1_out.mda"
Deleted:
<
<
4. Done
 Note:

1) HDRCamera_Project.pdf is included here to explain more in-depth.

Line: 37 to 35
 2) im_putIndex is a shell script I wrote to put index on each frame in an image sequence. The purpose of it is to ease the trouble identifying the first synchronized frame, so you can see the image and then crop the mda file directly knowing where to cut.
Deleted:
<
<

Attached File List:

  • im_putIndex: im_putIndex: put index on each frame in an image sequence

  -- Main.lancefu - 16 Jul 2009

-- Main.rachteo - 14 Jul 2009

META FILEATTACHMENT attr="" comment="HDRCamera Project Documentation for mda-homography" date="1247732437" name="HDRCamera_Project.pdf" path="HDRCamera_Project.pdf" size="38553" user="lancefu" version="1.1"
Changed:
<
<
META FILEATTACHMENT attr="" comment="im_putIndex: put index on each frame in an image sequence" date="1247732690" name="im_putIndex" path="im_putIndex" size="1706" user="lancefu" version="1.1"
>
>
META FILEATTACHMENT attr="" comment="put index on each frame in an image sequence" date="1247732690" name="im_putIndex" path="im_putIndex" size="1706" user="lancefu" version="1.1"
 
META FILEATTACHMENT attr="" comment="HDRCamAlign Matlab Scripts" date="1247732855" name="HDRCamAlign.zip" path="HDRCamAlign.zip" size="4062253" user="lancefu" version="1.1"

Revision 32009-07-16 - lancefu

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"

Basics

Line: 11 to 11
 4. Attach the Arduino control to the cameras and place the box over the setup. In the event that the box is unavailable, place some black material directly to the left of the setup. If there is anything between the beamsplitter and the black material, it will show up on the cameras.
Added:
>
>

MDA HDR

1. Download the files to your computer and convert them from .MTS files to MDA files.

2. Perform a homographic calibration on the files and stack the MDA files from each camera for easier processing.

3. Run mda-hdr on the stacked files. Command: mda-hdr brighter.mda darker.mda (mda-hdr-single combines individual frames)

 

Homographic Calibration

Added:
>
>
1. Once you have two mda files, let's call them cam1.mda and cam2.mda, one from each camera, extract one frame from each of them with full checkerboard in sight, rename them to cam1.jpg and cam2.jpg.
 
Added:
>
>
2. Copy image files to where you store the HDRCamAlign Matlab scripts, run Matlab and and run hdrcamaligh. metadata.xml is automatically generated by running hdrcamalign. Move file to where two mda files are.
 
Added:
>
>
3. In terminal, enter "mda-homography metadata.xml < cam1.mda > cam1_out.mda"
 
Changed:
<
<

MDA HDR

>
>
4. Done
 
Changed:
<
<
1. Download the files to your computer and convert them from .MTS files to MDA files.
>
>
Note:
 
Changed:
<
<
2. Perform a homographic calibration on the files and stack the MDA files from each camera for easier processing.
>
>
1) HDRCamera_Project.pdf is included here to explain more in-depth.
 
Changed:
<
<
3. Run mda-hdr on the stacked files. Command: mda-hdr brighter.mda darker.mda (mda-hdr-single combines individual frames)
>
>
2) im_putIndex is a shell script I wrote to put index on each frame in an image sequence. The purpose of it is to ease the trouble identifying the first synchronized frame, so you can see the image and then crop the mda file directly knowing where to cut.

Attached File List:

  • im_putIndex: im_putIndex: put index on each frame in an image sequence
 
Added:
>
>
 
Changed:
<
<
-- Main.lancefu - 13 Jul 2009
>
>
-- Main.lancefu - 16 Jul 2009
  -- Main.rachteo - 14 Jul 2009
Added:
>
>
META FILEATTACHMENT attr="" comment="HDRCamera Project Documentation for mda-homography" date="1247732437" name="HDRCamera_Project.pdf" path="HDRCamera_Project.pdf" size="38553" user="lancefu" version="1.1"
META FILEATTACHMENT attr="" comment="im_putIndex: put index on each frame in an image sequence" date="1247732690" name="im_putIndex" path="im_putIndex" size="1706" user="lancefu" version="1.1"
META FILEATTACHMENT attr="" comment="HDRCamAlign Matlab Scripts" date="1247732855" name="HDRCamAlign.zip" path="HDRCamAlign.zip" size="4062253" user="lancefu" version="1.1"

Revision 22009-07-14 - rachteo

Line: 1 to 1
 
META TOPICPARENT name="SummerInternships"
Changed:
<
<
Testing
>
>

Basics

1. Setup the cameras. For best results, adjust each camera and/or the beamsplitter so that the image seen in the camera viewfinders are as lined up as possible. This is simplest if the white guide lines are turned on. Note that one of the images will be reflected.

2. Adjust the exposures. There is a small knob near the front of the camera. Press and hold this knob to bring up the controls. Twist the knob to highlight "Exposure" and press the knob again to select it. Twisting the knob will now change the exposure level.

3. Set the zoom. Given that we currently have no means of ensuring that the amount of zoom on both cameras will always be identical, zooming all the way in or all the way out is the most accurate zoom setting at present.

4. Attach the Arduino control to the cameras and place the box over the setup. In the event that the box is unavailable, place some black material directly to the left of the setup. If there is anything between the beamsplitter and the black material, it will show up on the cameras.

Homographic Calibration

MDA HDR

1. Download the files to your computer and convert them from .MTS files to MDA files.

2. Perform a homographic calibration on the files and stack the MDA files from each camera for easier processing.

3. Run mda-hdr on the stacked files. Command: mda-hdr brighter.mda darker.mda (mda-hdr-single combines individual frames)

  -- Main.lancefu - 13 Jul 2009
Added:
>
>
-- Main.rachteo - 14 Jul 2009

Revision 12009-07-13 - lancefu

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="SummerInternships"
Testing

-- Main.lancefu - 13 Jul 2009

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback