{"id":13743304,"url":"https://github.com/motemen/as3-klt","last_synced_at":"2026-01-05T05:36:21.319Z","repository":{"id":435353,"uuid":"56267","full_name":"motemen/as3-klt","owner":"motemen","description":"Kanade-Lucas-Tomasi feature tracker implementation in as3","archived":false,"fork":false,"pushed_at":"2008-09-25T06:35:58.000Z","size":460,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-29T02:45:44.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/motemen.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-09-25T05:06:29.000Z","updated_at":"2019-08-13T13:36:14.000Z","dependencies_parsed_at":"2022-07-14T12:49:58.018Z","dependency_job_id":null,"html_url":"https://github.com/motemen/as3-klt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fas3-klt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fas3-klt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fas3-klt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/motemen%2Fas3-klt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/motemen","download_url":"https://codeload.github.com/motemen/as3-klt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245155038,"owners_count":20569651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:44.264Z","updated_at":"2026-01-05T05:36:21.284Z","avatar_url":"https://github.com/motemen.png","language":"ActionScript","funding_links":[],"categories":["Multimedia"],"sub_categories":["Image"],"readme":"===============\n    as3-klt\n===============\n\nas3-klt is a library for image feature detection/tracking based on `KLT \u003chttp://www.ces.clemson.edu/~stb/klt/\u003e`_, a C library.\n\n------------\n  Synopsis\n------------\n::\n\n  // detect\n  var bd:BitmapData = new BitmapData(image.width, image.height);\n  bd.draw(image);\n\n  var g:Graphics = canvas.graphics;\n  g.beginBitmapFill(bd);\n  g.drawRect(0, 0, bd.width, bd.height);\n  g.endFill();\n  g.lineStyle(1, 0xFF0000);\n\n  var tracker:KLTTracker = new KLTTracker;\n  var features:Array = tracker.selectGoodFeatures(bd, image.width, image.height, 20);\n  for each (var p:KLTFeature in features) {\n      g.drawCircle(p.x, p.y, 2);\n  }\n\n  // track\n  var bd2:BitmapData = new BitmapData(image.width, image.height);\n  bd2.draw(image2);\n  var newFeatures:Array = tracker.trackFeatures(bd1, bd2, image.width, image.height, features);\n\n  var g2:Graphics = canvas2.graphics;\n  g2.beginBitmapFill(bd2);\n  g2.drawRect(0, 0, bd2.width, bd2.height);\n  g2.endFill();\n  g2.lineStyle(1, 0xFF0000);\n\n  for each (var p:KLTFeature in newFeatures) {\n      g2.drawCircle(p.x, p.y, 2);\n  }\n\n\n-----------\n  Classes\n-----------\n\n``net.tokyoenvious.KLT.KLTTracker``\n'''''''''''''''''''''''''''''''''''\n\nContains feature-tracking context.\n\n``selectGoodFeatures(bd:BitmapData, nCols:uint, nRows:uint, nFeatures:int):Array``\n  Finds and returns ``nFeatures`` feature points in an image ``bd`` of size ``nCols`` x ``nRows``.\n\n``trackFeatures(bd1:BitmapData, bd2:BitmapData, nCols:uint, nRows:uint, features:Array):Array``\n  Tracks ``features`` in image ``bd1`` of size ``nCols`` x ``nRows`` and returns their new positions in ``bd2``.\n\n``net.tokyoenvious.KLT.KLTFeature``\n'''''''''''''''''''''''''''''''''''\n\nRepresents a detected feature point.\n\n``x``, ``y``\n  Feature's position.\n\n``val``\n  (selectGoodFeatures) Feature's score.\n  (trackFeatures) Feature's status.\n\n``net.tokyoenvious.KLT.KLTFloatImage``\n''''''''''''''''''''''''''''''''''''''\n\nUsed internally. Has value of type ``Number`` on each pixel.\n\n``net.tokyoenvious.KLT.KLTPyramid``\n'''''''''''''''''''''''''''''''''''\n\nUsed internally. Represents pyramid of ``KLTFloatImage``.\n\n--------\n  TODO\n--------\n\n* Implement sequential mode\n* Improve speed\n* Accept tracking region as ``Rectangle``\n* Simplify code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotemen%2Fas3-klt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmotemen%2Fas3-klt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmotemen%2Fas3-klt/lists"}