![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The ImageTransforms class provides several useful image transformation function used with SSD. More...
Public Member Functions | |
| ImageTransforms (CudaDnn< T > cuda, Log log, CryptoRandom random) | |
| The constructor. More... | |
| NormalizedBBox | UpdateBBoxByResizePolicy (ResizeParameter p, int nOldWidth, int nOldHeight, NormalizedBBox bbox1) |
| Update the BBox size based on the Resize policy. More... | |
| void | InferNewSize (ResizeParameter p, int nOldWidth, int nOldHeight, out int nNewWidth, out int nNewHeight) |
| Infer the new shape based on the resize policy. More... | |
| SimpleDatum | ApplyDistort (SimpleDatum sd, DistortionParameter p) |
| The ApplyDistort method applies the distortion policy to the simple datum. More... | |
| SimpleDatum | ApplyDistortEx (SimpleDatum sd, DistortionParameter p) |
| The ApplyDistortEx method applies the distortion policy to the simple datum. More... | |
| SimpleDatum | ApplyNoise (SimpleDatum sd, NoiseParameter p) |
| The ApplyNoise method applies the noise policy to the SimpleDatum. More... | |
| SimpleDatum | ApplyResize (SimpleDatum sd, ResizeParameter p) |
| The ApplyResize method resizes the SimpleDatum containing an image to a newly resized image as specified by the resize parameter. More... | |
The ImageTransforms class provides several useful image transformation function used with SSD.
| T | Specifies the base type float or double. Using float is recommended to conserve GPU memory. |
Definition at line 22 of file ImageTransforms.cs.
| MyCaffe.data.ImageTransforms< T >.ImageTransforms | ( | CudaDnn< T > | cuda, |
| Log | log, | ||
| CryptoRandom | random | ||
| ) |
The constructor.
| cuda | Specifies the CudaDnn instance used to communidate with Cuda. |
| log | Specifies the Log for output. |
| random | Specifies the random number generator. |
Definition at line 34 of file ImageTransforms.cs.
| SimpleDatum MyCaffe.data.ImageTransforms< T >.ApplyDistort | ( | SimpleDatum | sd, |
| DistortionParameter | p | ||
| ) |
The ApplyDistort method applies the distortion policy to the simple datum.
| sd | Specifies the SimpleDatum to distort. |
| p | Specifies the distortion parameters that define the distortion policy. |
Definition at line 402 of file ImageTransforms.cs.
| SimpleDatum MyCaffe.data.ImageTransforms< T >.ApplyDistortEx | ( | SimpleDatum | sd, |
| DistortionParameter | p | ||
| ) |
The ApplyDistortEx method applies the distortion policy to the simple datum.
| sd | Specifies the SimpleDatum to distort. |
| p | Specifies the distortion parameters that define the distortion policy. |
Definition at line 426 of file ImageTransforms.cs.
| SimpleDatum MyCaffe.data.ImageTransforms< T >.ApplyNoise | ( | SimpleDatum | sd, |
| NoiseParameter | p | ||
| ) |
The ApplyNoise method applies the noise policy to the SimpleDatum.
| sd | Specifies the SimpleDatum for which noise is to be added. |
| p | Specifies the NoiseParameter that defines the noise policy. |
NOTE: This method is not yet complete.
Definition at line 446 of file ImageTransforms.cs.
| SimpleDatum MyCaffe.data.ImageTransforms< T >.ApplyResize | ( | SimpleDatum | sd, |
| ResizeParameter | p | ||
| ) |
The ApplyResize method resizes the SimpleDatum containing an image to a newly resized image as specified by the resize parameter.
| sd | Specifies the SimpleDatum to resize - must contain a 3 channel image. |
| p | Specifies the resize parameter to apply. |
Definition at line 458 of file ImageTransforms.cs.
| void MyCaffe.data.ImageTransforms< T >.InferNewSize | ( | ResizeParameter | p, |
| int | nOldWidth, | ||
| int | nOldHeight, | ||
| out int | nNewWidth, | ||
| out int | nNewHeight | ||
| ) |
Infer the new shape based on the resize policy.
| p | Specifies the ResizeParameter with the resize policy. |
| nOldWidth | Specifies the old width. |
| nOldHeight | Specifies the old height. |
| nNewWidth | Specifies the new 'inferred' width. |
| nNewHeight | Specifies the new 'inferred' width. |
Definition at line 128 of file ImageTransforms.cs.
| NormalizedBBox MyCaffe.data.ImageTransforms< T >.UpdateBBoxByResizePolicy | ( | ResizeParameter | p, |
| int | nOldWidth, | ||
| int | nOldHeight, | ||
| NormalizedBBox | bbox1 | ||
| ) |
Update the BBox size based on the Resize policy.
| p | Specifies the ResizeParameter with the resize policy. |
| nOldWidth | Specifies the old width. |
| nOldHeight | Specifies the old height. |
| bbox1 | Specifies the BBox to update. |
Definition at line 49 of file ImageTransforms.cs.