r4 - 21 Jun 2007 - 11:08:07 - DumitruErhanYou are here: TWiki >  Public Web  > RectanglesData

## Rectangles and Rectangles-images data

In this task, a learning algorithm needs to recognize whether a rectangle contained in an image has a larger width or length. The rectangle can be situated anywhere in the 28 x 28 pixel image. We generated two datasets for this problem:

• rectangles: the pixels corresponding to the border of the rectangle has a value of 255, the rest are 0. The height and width of the rectangles were sampled uniformly, but when their difference was smaller than 3 pixels the samples were rejected. The top left corner of the rectangles was also sampled uniformly, with the constraint that the whole rectangle fits in the image.

• rectangles-image: the border and inside of the rectangles corresponds to an image patch and a background patch is also sampled. The image patches are extracted from one of the 20 images used by mnist-back-image. Sampling of the rectangles is essentially the same as for rectangles, but the area covered by the rectangles was constrained to be between 25% and 75% of the total image, the length and width of the rectangles were forced to be of at least 10 and their difference was forced to be of at least 5 pixels.

## Download links

All the datasets are provided as zip archives. Each archive contains two files -- a training (and validation) set and a test set. We used the last 2000 examples of the training sets as validation sets for rectangles-images and 200 for rectangles. In the case of SVMs, retrained the models with the entire set after choosing the optimal parameters on these validation sets. Data is stored at one example per row, the features being space-separated. There are 784 features per example (=28*28 images), corresponding to the first 784 columns of each row. The last column is the label, which is 1 or 0.

Link to dataset Size File description
Rectangles 2.7M packed; 599M + 15M unpacked 12000 train, 50000 test
Rectangles images 82M packed; 599M + 144M unpacked 12000 train, 50000 test

## Contact

Please contact us if you are interested in the (MATLAB) scripts that we used to generate this data.

-- DumitruErhan - 21 Jun 2007

Show attachmentsHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
png rectangles_images.png manage 9.5 K 21 Jun 2007 - 11:07 DumitruErhan Rectangles images
png rectangles.png manage 1.0 K 21 Jun 2007 - 11:08 DumitruErhan Rectangles
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
Log In or Register

No permission to view TWikiGuestLeftBar

Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback