<commit_before># Data Acquisition

## Overview

In this section we will acquire image data using mobile devices.

We will honor the method devised by <NAME> in the 1600s. It is
said that Leeuwenhoek performed some his earlier microscopy observations by
using a drop of water as a powerful spherical lense.

This is decribed in more detail [in this
blog](http://www.kitware.com/blog/home/post/253).

A drop of water typically will have a radius of about one or two millimeters,
resulting in a large magnification power.

The magnification will be inversely proportional to the radius of the water
drop. Therefore, it is desirable to make the drop as small as possible, while
still keeping it well rounded. In this exercise we will place the water over a
glass surface, therefore creating a half-spherical lense.


## Acquisition

[![Acquisition Overview](http://img.youtube.com/vi/kvKDqg-jbX4/0.jpg)](http://www.youtube.com/watch?v=kvKDqg-jbX4)

### Device

Use a mobile device

* Cell phone
* Tablet

### Water

* Get half a glass of water
* Get a napkin

### Slide Covers

* Get cover slides from instructors
* Be careful with the pieces of glass, they are very thin and can easily cut your skin.

### Post-Its Notes

* Get a block of post-its notes from instructors
* This will be used to hold the cover slides
* Distance to the camera will be adjusted by placing the cover slide in different 'pages' of the post-it block.

### Camera selection

* Identify if it has a forward facing camera, and if so, select this camera.
* Verify that the camera and its surrounded area is covered in glass.
* The camera area should not be vulnerable to water infiltration.

### Acquisition

#### The Water Drop

[![Water Drop](http://img.youtube.com/vi/mURPEFv9uyg/0.jpg)](http://www.youtube.com/watch?v=mURPEFv9uyg)

1. Place the device on a flat surface.
2. Immerse your finger in the glass of water as to draw a drop of water.
3. Place the drop of water on top of the camera.
    * Make sure to place the water well centered on the camera.
    * Make the drop as small as possible, yet cover the sensor.

#### The Object

[![Finger Focus](http://img.youtube.com/vi/kbRBKXDPqTM/0.jpg)](http://www.youtube.com/watch?v=kbRBKXDPqTM)

1. Hold a small object or the tip of your finger in front of the water drop, without touching the drop.
2. Monitor the image of the object in the screen of the mobile device.
3. Once you get the object in focus, press the acquisition button.
    * Note that the object might only be in focus at the center of the image, this is a normal aberration for spherical lenses.
4. Repeat until you master the process
5. Note that some devices may allow you to use a timer to acquire an image.
    * For example, give a delay of three seconds between the time you press the button and the time the image is taken.
    * This may help to hold the sample at the right location for it to be in focus.
6. Note that you could either acquire a still image or a video sequence.

#### The Microscopy Samples

[![Cover Slide Position](http://img.youtube.com/vi/1dX6jiezYuY/0.jpg)](http://www.youtube.com/watch?v=1dX6jiezYuY)

1. Take the microscopy samples distributed by instructors.
    * It typically will contain some microscopic organisms floating in a solution.
2. Put a drop of the sample in a glass cover slide.
3. Place the glass slide just above the water drop lens.
4. Adjust the position until you see the sample in focus.
5. Acquire the image.
    * Blocking any direct light with your hand may improve the illumination of the sample.

## Examples

Examples of data acquisition can be seen at

[![http://www.kitware.com/blog/home/post/253](http://www.kitware.com/blog/files/6_927312512.JPG)
http://www.kitware.com/blog/home/post/253](http://www.kitware.com/blog/home/post/253)

* [http://dx.doi.org/10.6084/m9.figshare.1051751]
* [http://dx.doi.org/10.6084/m9.figshare.1058904]
* [http://dx.doi.org/10.6084/m9.figshare.1058902]
* [http://midas3.kitware.com/midas/folder/11394]
* [https://twitter.com/luisibanez/status/476475327074410496/photo/1]
<commit_msg>Data acquisittion show images.<commit_after># Data Acquisition

## Overview

In this section we will acquire image data using mobile devices.

We will honor the method devised by <NAME> in the 1600s. It is
said that Leeuwenhoek performed some his earlier microscopy observations by
using a drop of water as a powerful spherical lense.

This is decribed in more detail [in this
blog](http://www.kitware.com/blog/home/post/253).

A drop of water typically will have a radius of about one or two millimeters,
resulting in a large magnification power.

The magnification will be inversely proportional to the radius of the water
drop. Therefore, it is desirable to make the drop as small as possible, while
still keeping it well rounded. In this exercise we will place the water over a
glass surface, therefore creating a half-spherical lense.


## Acquisition

[![Acquisition Overview](http://img.youtube.com/vi/kvKDqg-jbX4/0.jpg)](http://www.youtube.com/watch?v=kvKDqg-jbX4)

### Device

Use a mobile device

* Cell phone
* Tablet

### Water

* Get half a glass of water
* Get a napkin

### Slide Covers

* Get cover slides from instructors
* Be careful with the pieces of glass, they are very thin and can easily cut your skin.

### Post-Its Notes

* Get a block of post-its notes from instructors
* This will be used to hold the cover slides
* Distance to the camera will be adjusted by placing the cover slide in different 'pages' of the post-it block.

### Camera selection

* Identify if it has a forward facing camera, and if so, select this camera.
* Verify that the camera and its surrounded area is covered in glass.
* The camera area should not be vulnerable to water infiltration.

### Acquisition

#### The Water Drop

[![Water Drop](http://img.youtube.com/vi/mURPEFv9uyg/0.jpg)](http://www.youtube.com/watch?v=mURPEFv9uyg)

1. Place the device on a flat surface.
2. Immerse your finger in the glass of water as to draw a drop of water.
3. Place the drop of water on top of the camera.
    * Make sure to place the water well centered on the camera.
    * Make the drop as small as possible, yet cover the sensor.

#### The Object

[![Finger Focus](http://img.youtube.com/vi/kbRBKXDPqTM/0.jpg)](http://www.youtube.com/watch?v=kbRBKXDPqTM)

1. Hold a small object or the tip of your finger in front of the water drop, without touching the drop.
2. Monitor the image of the object in the screen of the mobile device.
3. Once you get the object in focus, press the acquisition button.
    * Note that the object might only be in focus at the center of the image, this is a normal aberration for spherical lenses.
4. Repeat until you master the process
5. Note that some devices may allow you to use a timer to acquire an image.
    * For example, give a delay of three seconds between the time you press the button and the time the image is taken.
    * This may help to hold the sample at the right location for it to be in focus.
6. Note that you could either acquire a still image or a video sequence.

#### The Microscopy Samples

[![Cover Slide Position](http://img.youtube.com/vi/1dX6jiezYuY/0.jpg)](http://www.youtube.com/watch?v=1dX6jiezYuY)

1. Take the microscopy samples distributed by instructors.
    * It typically will contain some microscopic organisms floating in a solution.
2. Put a drop of the sample in a glass cover slide.
3. Place the glass slide just above the water drop lens.
4. Adjust the position until you see the sample in focus.
5. Acquire the image.
    * Blocking any direct light with your hand may improve the illumination of the sample.

## Examples

Examples of data acquisition can be seen at

[![http://www.kitware.com/blog/home/post/253](http://www.kitware.com/blog/files/6_927312512.JPG)
http://www.kitware.com/blog/home/post/253](http://www.kitware.com/blog/home/post/253)

[![http://files.figshare.com/1526481/IMG_20140331_131737.jpeg](http://files.figshare.com/1526481/IMG_20140331_131737.jpeg =200x)
http://dx.doi.org/10.6084/m9.figshare.1051751](http://dx.doi.org/10.6084/m9.figshare.1051751)

[![http://files.figshare.com/1535892/IMG_20140613_141431.jpg](http://files.figshare.com/1535892/IMG_20140613_141431.jpg =200x)
http://dx.doi.org/10.6084/m9.figshare.1058904](http://dx.doi.org/10.6084/m9.figshare.1058904)

[http://dx.doi.org/10.6084/m9.figshare.1058902](http://dx.doi.org/10.6084/m9.figshare.1058902)

[http://midas3.kitware.com/midas/folder/11394](http://midas3.kitware.com/midas/folder/11394)
{'fraction_non_alphanumeric': 0.09131403118040089, 'fraction_numerical': 0.04184738014300785, 'mean_word_length': 3.917579250720461, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 18, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5296821', 'n_tokens_mistral': 2869, 'n_tokens_neox': 2585, 'n_words': 1112}