Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626839
OutlineDetector.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
OutlineDetector.h
View Options
/***************************************************************************
This file is part of MortalEditor, the OpenMortal character editor.
This is an internal tool, no warranty or support. Use at your own risk.
Copyright 2004 UPi upi@sourceforge
***************************************************************************/
#ifndef OUTLINEDETECTOR_H
#define OUTLINEDETECTOR_H
class
OutlineDetector
{
public
:
static
ImageData
doDetection
(
int
_headW
,
int
_headH
,
int
_bodyW
,
double
_bodyPercent
,
QImage
&
_image
,
ImageData
&
_data
);
protected
:
OutlineDetector
(
int
_headW
,
int
_headH
,
int
_bodyW
,
double
_bodyPercent
,
QImage
&
_image
);
void
findScanline
(
int
_y
,
int
&
_from
,
int
&
width
);
void
findMinMax
(
int
y1
,
int
y2
,
int
&
_min
,
int
&
_max
);
void
findAverage
(
int
y1
,
int
y2
,
int
&
from
,
int
&
width
);
protected
:
int
headW
;
int
headH
;
int
bodyW
;
double
bodyPercent
;
QImage
image
;
int
imageW
;
int
imageH
;
ImageData
data
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 1:15 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
131896
Default Alt Text
OutlineDetector.h (1 KB)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline