Documentation
¶
Index ¶
- Variables
- func ApplyFishEye(dest draw.Image, src image.Image, distance int) draw.Image
- func FindDistance(src image.Image, testRowIndex int) (image.Image, int)
- func GenFile(path string, testRowIndex int) (image.Image, error)
- func MakeNoise(img image.Image, distance int, factory func() draw.Image) draw.Image
- func RemoveFishEye(dest draw.Image, src image.Image, distance int) draw.Image
- func WhitePoints(src image.Image, y int) int
- type FisheyePreprocessor
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDetectDistance = errors.New("fisheye: can not detect distance")
)
Functions ¶
func ApplyFishEye ¶
ApplyFishEye applies the fish eye effect to the image.
func FindDistance ¶
FindDistance finds the distance of the fish eye effect.
func MakeNoise ¶
MakeNoise applies the fish eye effect to the image, and then tries to remove the fish eye effect from the image.
The image will be used as the input for training the model.
func RemoveFishEye ¶
RemoveFishEye try to remove the fish eye effect from the image. The image still be loss some pixels at the center
Types ¶
type FisheyePreprocessor ¶
type FisheyePreprocessor struct {
TestRowIndex int
}
func NewPreprocessor ¶
func NewPreprocessor() *FisheyePreprocessor
Click to show internal directories.
Click to hide internal directories.