3DSelfie
Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
|
Public Member Functions | |
void | reset () |
Resets the image creation progress. More... | |
void | setHelpLines () |
Sets help lines. More... | |
void | renderCamImage (int thresholdEnabled, int binaryEnabled) |
Renders the camera image. More... | |
void | OnPostRender () |
Saves rendersteps into textures. More... | |
Public Attributes | |
bool | nextRenderStep = false |
int | renderStep = 0 |
Texture2D | binaryImageHead |
Texture2D | binaryImageEyebrows |
Texture2D | binaryImageFace |
Texture2D | binaryImageAll |
Texture2D | colorImage |
Texture2D | colorImageSide |
Texture2D | binaryImageFaceSide |
Texture2D | binaryImageEyesSide |
Texture2D | binaryImageMouthSide |
int | eyesYdist = 0 |
int | eyesXdist = 0 |
int | eyesXdistBorder = 0 |
int | eyeBrowsXdistBorder = 0 |
int | mouthYdist = 0 |
int | mouthXdist = 0 |
int | noseYdist = 0 |
float[] | faceT |
float[] | eyesT |
float[] | eyeBrowsT |
float[] | mouthT |
string | buttonText |
Definition at line 5 of file grabPicture.cs.
void grabPicture.OnPostRender | ( | ) |
Saves rendersteps into textures.
Saves a rendered image in the corresponding texture. The process is initialized by the main loop. Every call increases a variable, which indicates, which texture to render to in the next call.
Definition at line 352 of file grabPicture.cs.
void grabPicture.renderCamImage | ( | int | thresholdEnabled, |
int | binaryEnabled | ||
) |
Renders the camera image.
[in] | thresholdEnabled | Wheter to enable the thresholded output or not |
[in] | binaryEnabled | Wheter to enable the binary output or not |
Renders the camera image dependent on the given parameters. If thresholding is enabled, pixels with colors lying outside of the given thresholds are rendered with half intensity. If binary and thresholding are enabled, pixels with colors lying outside of the given thresholds are rendered black, all other pixels are rendered white.
Definition at line 291 of file grabPicture.cs.
void grabPicture.reset | ( | ) |
Resets the image creation progress.
Resets all binary images, camera position, thresholds and image scales.
Definition at line 131 of file grabPicture.cs.
void grabPicture.setHelpLines | ( | ) |
Sets help lines.
Sets the help lines, which are displayed on the screen to guide the user through the image creation process.
Definition at line 163 of file grabPicture.cs.
Texture2D grabPicture.binaryImageAll |
Definition at line 19 of file grabPicture.cs.
Texture2D grabPicture.binaryImageEyebrows |
Definition at line 17 of file grabPicture.cs.
Texture2D grabPicture.binaryImageEyesSide |
Definition at line 24 of file grabPicture.cs.
Texture2D grabPicture.binaryImageFace |
Definition at line 18 of file grabPicture.cs.
Texture2D grabPicture.binaryImageFaceSide |
Definition at line 23 of file grabPicture.cs.
Texture2D grabPicture.binaryImageHead |
Definition at line 16 of file grabPicture.cs.
Texture2D grabPicture.binaryImageMouthSide |
Definition at line 25 of file grabPicture.cs.
string grabPicture.buttonText |
Definition at line 76 of file grabPicture.cs.
Texture2D grabPicture.colorImage |
Definition at line 20 of file grabPicture.cs.
Texture2D grabPicture.colorImageSide |
Definition at line 22 of file grabPicture.cs.
float [] grabPicture.eyeBrowsT |
Definition at line 73 of file grabPicture.cs.
int grabPicture.eyeBrowsXdistBorder = 0 |
Definition at line 39 of file grabPicture.cs.
float [] grabPicture.eyesT |
Definition at line 72 of file grabPicture.cs.
int grabPicture.eyesXdist = 0 |
Definition at line 37 of file grabPicture.cs.
int grabPicture.eyesXdistBorder = 0 |
Definition at line 38 of file grabPicture.cs.
int grabPicture.eyesYdist = 0 |
Definition at line 36 of file grabPicture.cs.
float [] grabPicture.faceT |
Definition at line 71 of file grabPicture.cs.
float [] grabPicture.mouthT |
Definition at line 74 of file grabPicture.cs.
int grabPicture.mouthXdist = 0 |
Definition at line 42 of file grabPicture.cs.
int grabPicture.mouthYdist = 0 |
Definition at line 41 of file grabPicture.cs.
bool grabPicture.nextRenderStep = false |
Definition at line 8 of file grabPicture.cs.
int grabPicture.noseYdist = 0 |
Definition at line 44 of file grabPicture.cs.
int grabPicture.renderStep = 0 |
Definition at line 10 of file grabPicture.cs.