SYMBOL INDEX (197 symbols across 23 files) FILE: carver.go type SeamCarver (line 16) | type SeamCarver interface constant maxFaceDetAttempts (line 21) | maxFaceDetAttempts = 20 type Carver (line 34) | type Carver struct method get (line 58) | func (c *Carver) get(x, y int) float64 { method set (line 64) | func (c *Carver) set(x, y int, px float64) { method ComputeSeams (line 77) | func (c *Carver) ComputeSeams(p *Processor, img *image.NRGBA) (*image.... method FindLowestEnergySeams (line 258) | func (c *Carver) FindLowestEnergySeams(p *Processor) []Seam { method RemoveSeam (line 319) | func (c *Carver) RemoveSeam(img *image.NRGBA, seams []Seam, debug bool... method AddSeam (line 342) | func (c *Carver) AddSeam(img *image.NRGBA, seams []Seam, debug bool) *... type Seam (line 42) | type Seam struct function NewCarver (line 48) | func NewCarver(width, height int) *Carver { FILE: carver_benchmark_test.go function Benchmark_Carver (line 10) | func Benchmark_Carver(b *testing.B) { FILE: carver_test.go constant imgWidth (line 17) | imgWidth = 10 constant imgHeight (line 18) | imgHeight = 10 function init (line 23) | func init() { function TestCarver_EnergySeamShouldNotBeDetected (line 35) | func TestCarver_EnergySeamShouldNotBeDetected(t *testing.T) { function TestCarver_DetectHorizontalEnergySeam (line 64) | func TestCarver_DetectHorizontalEnergySeam(t *testing.T) { function TestCarver_DetectVerticalEnergySeam (line 103) | func TestCarver_DetectVerticalEnergySeam(t *testing.T) { function TestCarver_RemoveSeam (line 143) | func TestCarver_RemoveSeam(t *testing.T) { function TestCarver_AddSeam (line 182) | func TestCarver_AddSeam(t *testing.T) { function TestCarver_ComputeSeams (line 221) | func TestCarver_ComputeSeams(t *testing.T) { function TestCarver_ShouldDetectFace (line 244) | func TestCarver_ShouldDetectFace(t *testing.T) { function TestCarver_ShouldNotRemoveFaceZone (line 293) | func TestCarver_ShouldNotRemoveFaceZone(t *testing.T) { function TestCarver_ShouldNotResizeWithFaceDistorsion (line 373) | func TestCarver_ShouldNotResizeWithFaceDistorsion(t *testing.T) { function findNonZeroValue (line 428) | func findNonZeroValue(points []float64) bool { FILE: cmd/caire/main.go constant HelpBanner (line 15) | HelpBanner = ` constant pipeName (line 26) | pipeName = "-" function main (line 52) | func main() { FILE: draw.go type ShapeType (line 13) | type ShapeType constant Circle (line 16) | Circle ShapeType = "circle" constant Line (line 17) | Line ShapeType = "line" method DrawSeam (line 22) | func (g *Gui) DrawSeam(shape ShapeType, x, y, thickness float32) { method drawCircle (line 34) | func (g *Gui) drawCircle(x, y, radius float32) { method drawLine (line 61) | func (g *Gui) drawLine(x, y, thickness float32) { method point (line 82) | func (g *Gui) point(x, y float32) f32.Point { method setColor (line 90) | func (g *Gui) setColor(c color.Color) color.NRGBA { method setFillColor (line 101) | func (g *Gui) setFillColor(c color.Color) { method getFillColor (line 106) | func (g *Gui) getFillColor() color.Color { function getRatio (line 111) | func getRatio(w, h float32) float32 { FILE: exec.go type Image (line 31) | type Image struct method consumer (line 177) | func (img *Image) consumer( method process (line 200) | func (img *Image) process(p *Processor, in, out string) error { method pathToFile (line 292) | func (img *Image) pathToFile(in, out string) (io.Reader, io.Writer, er... method printOpStatus (line 333) | func (img *Image) printOpStatus(fname string, err error) { type result (line 37) | type result struct function Resize (line 42) | func Resize(s SeamCarver, img *image.NRGBA) (image.Image, error) { method Execute (line 49) | func (p *Processor) Execute(img *Image) { function walkDir (line 352) | func walkDir( FILE: gui.go type hudControlType (line 29) | type hudControlType constant hudShowSeams (line 32) | hudShowSeams hudControlType = iota constant hudShowDebugMask (line 33) | hudShowDebugMask constant redStart (line 39) | redStart = 137 constant greenStart (line 40) | greenStart = 47 constant blueStart (line 41) | blueStart = 54 constant redEnd (line 44) | redEnd = 255 constant greenEnd (line 45) | greenEnd = 112 constant blueEnd (line 46) | blueEnd = 105 type interval (line 57) | type interval struct type Gui (line 63) | type Gui struct method AddHudControl (line 137) | func (g *Gui) AddHudControl(hudControlType hudControlType, title strin... method initWindow (line 148) | func (g *Gui) initWindow(width, height int) { method getWindowSize (line 170) | func (g *Gui) getWindowSize() (float32, float32) { method Run (line 184) | func (g *Gui) Run() error { method draw (line 360) | func (g *Gui) draw(bgColor color.NRGBA) { method displayMessage (line 483) | func (g *Gui) displayMessage(ctx layout.Context, bgCol color.NRGBA, ms... type hudCtrl (line 103) | type hudCtrl struct function NewGUI (line 110) | func NewGUI(width, height int) *Gui { function random (line 563) | func random(min, max float32) float32 { FILE: image.go function decodeImg (line 20) | func decodeImg(src string) (image.Image, error) { function encodeImg (line 44) | func encodeImg(p *Processor, w io.Writer, img *image.NRGBA) error { function rotateImage90 (line 80) | func rotateImage90(src *image.NRGBA) *image.NRGBA { function rotateImage270 (line 97) | func rotateImage270(src *image.NRGBA) *image.NRGBA { function imgToNRGBA (line 115) | func imgToNRGBA(img image.Image) *image.NRGBA { function imgToPix (line 174) | func imgToPix(src *image.NRGBA) []uint8 { function pixToImage (line 189) | func pixToImage(pixels []uint8, width, height int) image.Image { function rgbToGrayscale (line 216) | func rgbToGrayscale(src *image.NRGBA) []uint8 { function dither (line 235) | func dither(src *image.NRGBA) *image.NRGBA { FILE: image_test.go function TestImage_ShouldGetSampleImage (line 15) | func TestImage_ShouldGetSampleImage(t *testing.T) { function TestImage_ImgToNRGBA (line 23) | func TestImage_ImgToNRGBA(t *testing.T) { function scan (line 83) | func scan(img image.Image, x1, y1, x2, y2 int, dst []uint8) { function makeYCbCrImage (line 154) | func makeYCbCrImage(rect image.Rectangle, colors []color.Color, sr image... function makeNRGBAImage (line 169) | func makeNRGBAImage(rect image.Rectangle, colors []color.Color) *image.N... function fillDrawImage (line 175) | func fillDrawImage(img draw.Image, colors []color.Color) { function readRow (line 192) | func readRow(img image.Image, y int) []uint8 { function readColumn (line 206) | func readColumn(img image.Image, x int) []uint8 { function compareBytes (line 220) | func compareBytes(a, b []uint8, delta int) bool { FILE: imop/blend.go type BlendType (line 21) | type BlendType constant Normal (line 24) | Normal BlendType = iota constant Darken (line 25) | Darken constant Lighten (line 26) | Lighten constant Multiply (line 27) | Multiply constant Screen (line 28) | Screen constant Overlay (line 29) | Overlay constant SoftLight (line 30) | SoftLight constant HardLight (line 31) | HardLight constant ColorDodge (line 32) | ColorDodge constant ColorBurn (line 33) | ColorBurn constant Difference (line 34) | Difference constant Exclusion (line 35) | Exclusion constant Hue (line 38) | Hue constant Saturation (line 39) | Saturation constant ColorMode (line 40) | ColorMode constant Luminosity (line 41) | Luminosity type Blend (line 45) | type Blend struct method Set (line 68) | func (bl *Blend) Set(blendType BlendType) error { method Get (line 78) | func (bl *Blend) Get() BlendType { method Lum (line 83) | func (bl *Blend) Lum(rgb Color) float64 { method SetLum (line 88) | func (bl *Blend) SetLum(rgb Color, l float64) Color { method clip (line 98) | func (bl *Blend) clip(rgb Color) Color { method Sat (line 120) | func (bl *Blend) Sat(rgb Color) float64 { method SetSat (line 133) | func (bl *Blend) SetSat(rgb Color, s float64) Color { method AlphaCompose (line 164) | func (bl *Blend) AlphaCompose( type Color (line 51) | type Color struct function NewBlend (line 56) | func NewBlend() *Blend { type channel (line 128) | type channel struct FILE: imop/blend_test.go function TestBlend_Basic (line 12) | func TestBlend_Basic(t *testing.T) { function TestBlend_Modes (line 42) | func TestBlend_Modes(t *testing.T) { function TestBlend_NonSeparableModes (line 151) | func TestBlend_NonSeparableModes(t *testing.T) { FILE: imop/comp.go type CompType (line 17) | type CompType constant Clear (line 20) | Clear CompType = iota constant Copy (line 21) | Copy constant Dst (line 22) | Dst constant SrcOver (line 23) | SrcOver constant DstOver (line 24) | DstOver constant SrcIn (line 25) | SrcIn constant DstIn (line 26) | DstIn constant SrcOut (line 27) | SrcOut constant DstOut (line 28) | DstOut constant SrcAtop (line 29) | SrcAtop constant DstAtop (line 30) | DstAtop constant Xor (line 31) | Xor type Bitmap (line 36) | type Bitmap struct type Composite (line 41) | type Composite struct method Set (line 75) | func (op *Composite) Set(compType CompType) error { method Get (line 85) | func (op *Composite) Get() CompType { method Draw (line 92) | func (op *Composite) Draw(bitmap *Bitmap, src, dst *image.NRGBA, blend... function NewBitmap (line 47) | func NewBitmap(rect image.Rectangle) *Bitmap { function InitOp (line 54) | func InitOp() *Composite { FILE: imop/comp_test.go function TestComp_Basic (line 12) | func TestComp_Basic(t *testing.T) { function TestComp_Ops (line 25) | func TestComp_Ops(t *testing.T) { FILE: preview.go method showPreview (line 8) | func (p *Processor) showPreview( FILE: processor.go type worker (line 30) | type worker struct type shrinkFn (line 38) | type shrinkFn type enlargeFn (line 41) | type enlargeFn type Processor (line 44) | type Processor struct method Resize (line 77) | func (p *Processor) Resize(img *image.NRGBA) (image.Image, error) { method calculateFitness (line 405) | func (p *Processor) calculateFitness(img *image.NRGBA, c *Carver) *ima... method Process (line 448) | func (p *Processor) Process(r io.Reader, w io.Writer) error { method shrink (line 504) | func (p *Processor) shrink(img *image.NRGBA) (*image.NRGBA, error) { method enlarge (line 540) | func (p *Processor) enlarge(img *image.NRGBA) (*image.NRGBA, error) { FILE: processor_test.go function TestResize_ShrinkImageWidth (line 10) | func TestResize_ShrinkImageWidth(t *testing.T) { function TestResize_ShrinkImageHeight (line 33) | func TestResize_ShrinkImageHeight(t *testing.T) { function TestResize_EnlargeImageWidth (line 58) | func TestResize_EnlargeImageWidth(t *testing.T) { function TestResize_EnlargeImageHeight (line 81) | func TestResize_EnlargeImageHeight(t *testing.T) { FILE: sobel.go type kernel (line 8) | type kernel method SobelDetector (line 26) | func (c *Carver) SobelDetector(img *image.NRGBA, threshold float64) *ima... method getImageData (line 91) | func (c *Carver) getImageData(img *image.NRGBA) []uint8 { FILE: stackblur.go type blurStack (line 13) | type blurStack struct function Stackblur (line 57) | func Stackblur(dst, src image.Image, radius uint32) error { function process (line 76) | func process(dst *image.NRGBA, src image.Image, radius uint32) { function blurImage (line 128) | func blurImage(src *image.NRGBA, radius uint32) { FILE: utils/download.go function DownloadImage (line 15) | func DownloadImage(url string) (*os.File, error) { function IsValidUrl (line 52) | func IsValidUrl(uri string) bool { function DetectContentType (line 67) | func DetectContentType(fname string) (any, error) { FILE: utils/download_test.go function TestUtils_ShouldDownloadImage (line 9) | func TestUtils_ShouldDownloadImage(t *testing.T) { function TestUtils_ShouldBeValidUrl (line 20) | func TestUtils_ShouldBeValidUrl(t *testing.T) { function TestUtils_ShouldDetectValidFileType (line 27) | func TestUtils_ShouldDetectValidFileType(t *testing.T) { FILE: utils/format.go type MessageType (line 12) | type MessageType constant DefaultMessage (line 16) | DefaultMessage MessageType = iota constant SuccessMessage (line 17) | SuccessMessage constant ErrorMessage (line 18) | ErrorMessage constant StatusMessage (line 19) | StatusMessage constant DefaultColor (line 24) | DefaultColor = "\x1b[0m" constant StatusColor (line 25) | StatusColor = "\x1b[36m" constant SuccessColor (line 26) | SuccessColor = "\x1b[32m" constant ErrorColor (line 27) | ErrorColor = "\x1b[31m" function DecorateText (line 31) | func DecorateText(s string, msgType MessageType) string { function FormatTime (line 48) | func FormatTime(d time.Duration) string { function HexToRGBA (line 71) | func HexToRGBA(x string) color.NRGBA { function RGB (line 99) | func RGB(r, g, b float32) color.NRGBA { function RGBA (line 104) | func RGBA(r, g, b, a float32) color.NRGBA { function HSLA (line 109) | func HSLA(h, s, l, a float32) color.NRGBA { return RGBA(hsla(h, s, l, a)) } function HSL (line 112) | func HSL(h, s, l float32) color.NRGBA { return HSLA(h, s, l, 1) } function hue (line 114) | func hue(v1, v2, h float32) float32 { function hsla (line 132) | func hsla(h, s, l, a float32) (r, g, b, ra float32) { function sat8 (line 155) | func sat8(v float32) uint8 { function mod32 (line 165) | func mod32(x, y float32) float32 { return float32(math.Mod(float64(x), f... FILE: utils/spinner.go type Spinner (line 15) | type Spinner struct method Start (line 39) | func (s *Spinner) Start() { method Stop (line 68) | func (s *Spinner) Stop() { method RestoreCursor (line 81) | func (s *Spinner) RestoreCursor() { method clear (line 89) | func (s *Spinner) clear() { function NewSpinner (line 27) | func NewSpinner(msg string, d time.Duration) *Spinner { FILE: utils/utils.go function Min (line 10) | func Min[T constraints.Ordered](values ...T) T { function Max (line 22) | func Max[T constraints.Ordered](values ...T) T { function Abs (line 34) | func Abs[T constraints.Signed | constraints.Float](x T) T { function Contains (line 42) | func Contains[T comparable](slice []T, value T) bool {