package image
- Alphabetic
- Public
- All
Type Members
-
class
BGRImage extends Image
Represent a BGR image.
-
class
BGRImgCropper extends Transformer[LabeledBGRImage, LabeledBGRImage]
Crop a
cropWidthxcropHeightpatch from an image.Crop a
cropWidthxcropHeightpatch from an image. The patch size should be less than the image size. There're two cropping methods: at random and from the center. The former is preferred for simple data augmentation during training while the later applies to validation or testing -
class
BGRImgNormalizer extends Transformer[LabeledBGRImage, LabeledBGRImage]
Normalize a BGR image.
Normalize a BGR image. The normalize is per channel. Each pixel will minus mean value of the channel. Then divide std value of the channel.
-
class
BGRImgPixelNormalizer extends Transformer[LabeledBGRImage, LabeledBGRImage]
Each pixel value of the input BGR Image sub the given mean value of the corresponding chanel
-
class
BGRImgRdmCropper extends Transformer[LabeledBGRImage, LabeledBGRImage]
Random crop a specified area from the Image.
Random crop a specified area from the Image. The result is also an image
-
class
BGRImgToBatch extends Transformer[LabeledBGRImage, MiniBatch[Float]]
Convert a batch of labeled BGR images into a Mini-batch.
Convert a batch of labeled BGR images into a Mini-batch.
Notice: The totalBatch means a total batch size. In distributed environment, the batch should be divided by total core number
-
class
BGRImgToImageVector extends Transformer[LabeledBGRImage, DenseVector]
Convert a BGR image to dense vector of spark mllib
-
class
BGRImgToLocalSeqFile extends Transformer[(LabeledBGRImage, String), String]
Write a BGR image sequence into one or many hadoop sequence files.
-
class
BGRImgToSample extends Transformer[LabeledBGRImage, Sample[Float]]
transform labeled bgr image to sample
-
class
BytesToBGRImg extends Transformer[ByteRecord, LabeledBGRImage]
Convert a byte record to BGR image.
Convert a byte record to BGR image. The format is, first 4 bytes is width, the next 4 bytes is height, and the last is pixels coming with BGR order.
-
class
BytesToGreyImg extends Transformer[ByteRecord, LabeledGreyImage]
Convert byte records into grey image.
-
class
ColorJitter extends Transformer[LabeledBGRImage, LabeledBGRImage]
Process an image with brightness, contrast, saturation in a random order
-
sealed
trait
CropperMethod extends AnyRef
Image crop method, e.g.
Image crop method, e.g. random, center
-
class
GreyImage extends Image
Represent a grey image
-
class
GreyImgCropper extends Transformer[LabeledGreyImage, LabeledGreyImage]
Crop an area from a grey image.
Crop an area from a grey image. The crop area width and height must be smaller than grey image width and height. The area position is random.
-
class
GreyImgNormalizer extends Transformer[LabeledGreyImage, LabeledGreyImage]
Normalize a grey image.
Normalize a grey image. Each pixel will minus mean and then divide std.
-
class
GreyImgToBatch extends Transformer[LabeledGreyImage, MiniBatch[Float]]
Convert a batch of labeled grey images into a Mini-batch.
Convert a batch of labeled grey images into a Mini-batch.
Notice: The totalBatch means a total batch size. In distributed environment, the batch should be divided by total core number
-
class
GreyImgToSample extends Transformer[LabeledGreyImage, Sample[Float]]
transform labeled grey image to sample
-
class
HFlip extends Transformer[LabeledBGRImage, LabeledBGRImage]
Flip a image with a probability.
Flip a image with a probability. The threshold higher, the less easier to flip the image.
-
class
LabeledBGRImage extends BGRImage with Label[Float]
A BGR Image with label.
-
class
LabeledGreyImage extends GreyImage with Label[Float]
A grey image with a float label
-
class
Lighting extends Transformer[LabeledBGRImage, LabeledBGRImage]
Lighting noise for data augmentation
Lighting noise for data augmentation
Krizhevsky et al. proposed fancy PCA when training the famous Alex-Net in 2012 Fancy PCA alters the intensities of the RGB channels in training images For each training image, add the corresponding quantity to each RGB image pixel
-
case class
LocalLabeledImagePath(label: Float, p: Path) extends LocalImagePath with Label[Float] with Product with Serializable
Represent a local file path of a image file with a float label
-
class
LocalResizeImgReader extends Transformer[LocalLabeledImagePath, LabeledBGRImage]
Read BGR images from local given paths.
Read BGR images from local given paths. After read the image, it will resize the images to the given width and height. Besides, it will also divide the pixel value by the given normalize value.
-
class
LocalResizeImgWithName extends Transformer[LocalLabeledImagePath, (LabeledBGRImage, String)]
Read BGR images from local given paths.
Read BGR images from local given paths. After read the image, it will resize the images to the given width and height. It will also divide the pixel value by the given normalize value. Besides, it will return the file name.
-
class
LocalScaleImgReader extends Transformer[LocalLabeledImagePath, LabeledBGRImage]
Read BGR images from local given paths.
Read BGR images from local given paths. After read the image, it will resize the shorted edge to the given scale to value and resize the other edge properly. It will also divide the pixel value by the given normalize value.
-
class
LocalScaleImgWithName extends Transformer[LocalLabeledImagePath, (LabeledBGRImage, String)]
Read BGR images from given paths.
Read BGR images from given paths. After read the image, it will resize the shorted edge to the given scale to value and resize the other edge properly. It will also divide the pixel value by the given normalize value. Besides, it will return the file name.
-
class
LocalSeqFileToBytes extends Transformer[LocalSeqFilePath, ByteRecord]
Read byte records from local hadoop sequence files.
-
class
MTLabeledBGRImgToBatch[A] extends Transformer[A, MiniBatch[Float]]
Multi-thread convert BGR images into Mini-Batch.
Multi-thread convert BGR images into Mini-Batch.
Note: the source iterator must be thread safe.
Value Members
- object BGRImage extends Serializable
- object BGRImgCropper extends Serializable
- object BGRImgNormalizer extends Serializable
- object BGRImgPixelNormalizer extends Serializable
- object BGRImgRdmCropper extends Serializable
- object BGRImgToBatch extends Serializable
- object BGRImgToImageVector extends Serializable
- object BGRImgToLocalSeqFile extends Serializable
- object BGRImgToSample extends Serializable
- object BytesToBGRImg extends Serializable
- object BytesToGreyImg extends Serializable
- object ColorJitter extends Serializable
-
object
CropCenter extends CropperMethod with Product with Serializable
crop the center of image
-
object
CropRandom extends CropperMethod with Product with Serializable
crop the random position of image
- object GreyImgCropper extends Serializable
- object GreyImgNormalizer extends Serializable
- object GreyImgToBatch extends Serializable
- object GreyImgToSample extends Serializable
- object HFlip extends Serializable
- object Lighting extends Serializable
- object LocalImageFiles
- object LocalImgReader
-
object
LocalImgReaderWithName
Read BGR images from given paths, return LabeledBGRImage and the file name.
- object LocalSeqFileToBytes extends Serializable
- object MTLabeledBGRImgToBatch extends Serializable
-
object
Visualizer
used for image object detection visualize detected bounding boxes and their scores to image