Permalink
Browse files

Removed copyright and tidied up

git-svn-id: http://simple-iphone-image-processing.googlecode.com/svn/trunk@15 f0a95276-1093-11de-b0d4-7fec019aa467
  • Loading branch information...
1 parent b06673c commit 3fb62b6b9fe36ed93aa155720c2b64ec696c1643 cmgreening committed Sep 22, 2009
View
1 Classes/Image.h
@@ -3,7 +3,6 @@
* ImageProcessing
*
* Created by Chris Greening on 02/01/2009.
- * Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
View
1 Classes/Image.mm
@@ -3,7 +3,6 @@
* ImageProcessing
*
* Created by Chris Greening on 04/01/2009.
- * Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "Image.h"
View
1 Classes/ImageProcessingAppDelegate.h
@@ -3,7 +3,6 @@
// ImageProcessing
//
// Created by Chris Greening on 14/03/2009.
-// Copyright CMG Research 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
View
1 Classes/ImageProcessingAppDelegate.m
@@ -3,7 +3,6 @@
// ImageProcessing
//
// Created by Chris Greening on 14/03/2009.
-// Copyright CMG Research 2009. All rights reserved.
//
#import "ImageProcessingAppDelegate.h"
View
1 Classes/ListBundleImagesViewController.h
@@ -3,7 +3,6 @@
// SudokuScraper
//
// Created by Chris Greening on 19/01/2009.
-// Copyright 2009 CMG Research. All rights reserved.
//
#import <UIKit/UIKit.h>
View
1 Classes/ListBundleImagesViewController.mm
@@ -3,7 +3,6 @@
// SudokuScraper
//
// Created by Chris Greening on 19/01/2009.
-// Copyright 2009 CMG Research. All rights reserved.
//
#import "ListBundleImagesViewController.h"
View
31 Classes/Region.h
@@ -1,31 +0,0 @@
-//
-// Region.h
-// ImageProcessing
-//
-// Created by Alan Wostenberg on 3/30/09.
-// Copyright 2009 Wosterware.com. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <CoreGraphics/CGGeometry.h>
-#import <UIKit/UIGeometry.h>
-
-typedef CGPoint NSPoint;
-typedef CGRect NSRect;
-#define NSMakePoint CGPointMake
-#define pointValue CGPointValue
-#define valueWithPoint valueWithCGPoint
-
-@interface Region : NSObject {
- NSMutableArray* points;
-}
-
-// answer area of bounding box of region
-- (int) area;
-- (NSRect) bb;
-
-// add a point to the region
-- (void) addPoint: (NSPoint) p;
-- (NSMutableArray*) points;
-
-@end
View
56 Classes/Region.mm
@@ -1,56 +0,0 @@
-//
-// Region.m
-// ImageProcessing
-//
-// Created by Alan Wostenberg on 3/30/09.
-// Copyright 2009 Wosterware.com. All rights reserved.
-//
-
-#import "Region.h"
-
-@implementation Region
-
-- (id) init {
- points = [NSMutableArray arrayWithCapacity: 2];
- return (self);
-}
-
-// answer area of bounding box
-- (int) area {
- return self.bb.size.width * self.bb.size.height;
-}
-
-// answer the bounding box for the region
-- (NSRect) bb {
- NSRect answer = { {0, 0}, {0, 0}};
- if ([points count] < 2) {
- return answer;
- }
-
- NSPoint upperLeft = [[points objectAtIndex: 0] pointValue];
- NSPoint lowerRight = [[points lastObject] pointValue];
- // find smallest x, smallest y, largest x, largest y //
- NSEnumerator* e = [points objectEnumerator];
- id aValue;
- while (aValue = [e nextObject]) {
- if ([aValue pointValue].x < upperLeft.x) {upperLeft.x = [aValue pointValue].x;}
- if ([aValue pointValue].y < upperLeft.y) {upperLeft.y = [aValue pointValue].y;}
- if ([aValue pointValue].x > lowerRight.x) {lowerRight.x = [aValue pointValue].x;}
- if ([aValue pointValue].y > lowerRight.y) {lowerRight.y = [aValue pointValue].y;}
- }
-
- answer.size.width = lowerRight.x - upperLeft.x;
- answer.size.height = lowerRight.y - upperLeft.y;
- answer.origin.x = upperLeft.x;
- answer.origin.y = upperLeft.y;
- return answer;
-}
-
-// add a point to the region
-- (void) addPoint: (NSPoint) p {
- [points addObject: [NSValue valueWithPoint:p]];
-}
-- (NSMutableArray*) points {
- return points;
-}
-@end
View
1 Classes/ResultViewController.h
@@ -3,7 +3,6 @@
// ImageProcessing
//
// Created by Chris Greening on 08/03/2009.
-// Copyright 2009 CMG Research. All rights reserved.
//
#import <UIKit/UIKit.h>
View
1 Classes/ResultViewController.mm
@@ -3,7 +3,6 @@
// WhiteBoardGrab
//
// Created by Chris Greening on 08/03/2009.
-// Copyright 2009 CMG Research. All rights reserved.
//
#import "ResultViewController.h"
View
1 Classes/RootViewController.h
@@ -3,7 +3,6 @@
// ImageProcessing
//
// Created by Chris Greening on 14/03/2009.
-// Copyright CMG Research 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
View
1 Classes/RootViewController.m
@@ -3,7 +3,6 @@
// ImageProcessing
//
// Created by Chris Greening on 14/03/2009.
-// Copyright CMG Research 2009. All rights reserved.
//
#import "RootViewController.h"

0 comments on commit 3fb62b6

Please sign in to comment.