image-js 0.0.0-next-ce6a4f4a28 → 0.0.0-next-e43ea796e5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/dist-types/image-js.d.ts +1 -60
  2. package/lib/Image.d.ts +0 -59
  3. package/lib/Image.d.ts.map +1 -1
  4. package/lib/Image.js +1 -59
  5. package/lib/Image.js.map +1 -1
  6. package/lib/align/affineTransfrom/affineFitFunction.d.ts +10 -0
  7. package/lib/align/affineTransfrom/affineFitFunction.d.ts.map +1 -0
  8. package/lib/align/affineTransfrom/affineFitFunction.js +25 -0
  9. package/lib/align/affineTransfrom/affineFitFunction.js.map +1 -0
  10. package/lib/align/affineTransfrom/applyAffineTransform.d.ts +10 -0
  11. package/lib/align/affineTransfrom/applyAffineTransform.d.ts.map +1 -0
  12. package/lib/align/affineTransfrom/applyAffineTransform.js +23 -0
  13. package/lib/align/affineTransfrom/applyAffineTransform.js.map +1 -0
  14. package/lib/align/affineTransfrom/createAffineTransformModel.d.ts +10 -0
  15. package/lib/align/affineTransfrom/createAffineTransformModel.d.ts.map +1 -0
  16. package/lib/align/affineTransfrom/createAffineTransformModel.js +27 -0
  17. package/lib/align/affineTransfrom/createAffineTransformModel.js.map +1 -0
  18. package/lib/align/affineTransfrom/drawResult.d.ts +11 -0
  19. package/lib/align/affineTransfrom/drawResult.d.ts.map +1 -0
  20. package/lib/align/affineTransfrom/drawResult.js +40 -0
  21. package/lib/align/affineTransfrom/drawResult.js.map +1 -0
  22. package/lib/align/affineTransfrom/getAffineTransform.d.ts +100 -0
  23. package/lib/align/affineTransfrom/getAffineTransform.d.ts.map +1 -0
  24. package/lib/align/affineTransfrom/getAffineTransform.js +150 -0
  25. package/lib/align/affineTransfrom/getAffineTransform.js.map +1 -0
  26. package/lib/align/affineTransfrom/getEuclideanDistance.d.ts +9 -0
  27. package/lib/align/affineTransfrom/getEuclideanDistance.d.ts.map +1 -0
  28. package/lib/align/affineTransfrom/getEuclideanDistance.js +14 -0
  29. package/lib/align/affineTransfrom/getEuclideanDistance.js.map +1 -0
  30. package/lib/align/affineTransfrom/getMatrixFromPoints.d.ts +10 -0
  31. package/lib/align/affineTransfrom/getMatrixFromPoints.d.ts.map +1 -0
  32. package/lib/align/affineTransfrom/getMatrixFromPoints.js +24 -0
  33. package/lib/align/affineTransfrom/getMatrixFromPoints.js.map +1 -0
  34. package/lib/align/affineTransfrom/getPointsFromMatrix.d.ts +9 -0
  35. package/lib/align/affineTransfrom/getPointsFromMatrix.d.ts.map +1 -0
  36. package/lib/align/affineTransfrom/getPointsFromMatrix.js +17 -0
  37. package/lib/align/affineTransfrom/getPointsFromMatrix.js.map +1 -0
  38. package/lib/align/alignMinDifference.d.ts +20 -0
  39. package/lib/align/alignMinDifference.d.ts.map +1 -0
  40. package/lib/align/alignMinDifference.js +63 -0
  41. package/lib/align/alignMinDifference.js.map +1 -0
  42. package/lib/align/index.d.ts +3 -0
  43. package/lib/align/index.d.ts.map +1 -0
  44. package/lib/align/index.js +19 -0
  45. package/lib/align/index.js.map +1 -0
  46. package/lib/compare/computeSsim.js +2 -2
  47. package/lib/compare/computeSsim.js.map +1 -1
  48. package/lib/compare/subtract.js +2 -2
  49. package/lib/compare/subtract.js.map +1 -1
  50. package/lib/compute/histogram.js +1 -1
  51. package/lib/compute/histogram.js.map +1 -1
  52. package/lib/correctColor/correctColor.js +1 -1
  53. package/lib/correctColor/correctColor.js.map +1 -1
  54. package/lib/draw/drawCircleOnImage.d.ts.map +1 -1
  55. package/lib/draw/drawCircleOnImage.js +5 -5
  56. package/lib/draw/drawCircleOnImage.js.map +1 -1
  57. package/lib/draw/drawLineOnImage.js +3 -3
  58. package/lib/draw/drawLineOnImage.js.map +1 -1
  59. package/lib/draw/drawMarker.js +2 -2
  60. package/lib/draw/drawMarker.js.map +1 -1
  61. package/lib/draw/drawPoints.d.ts +1 -1
  62. package/lib/draw/drawPoints.d.ts.map +1 -1
  63. package/lib/draw/drawPoints.js +3 -3
  64. package/lib/draw/drawPoints.js.map +1 -1
  65. package/lib/draw/drawPolygonOnImage.js +2 -2
  66. package/lib/draw/drawPolygonOnImage.js.map +1 -1
  67. package/lib/draw/drawPolylineOnImage.js +2 -2
  68. package/lib/draw/drawPolylineOnImage.js.map +1 -1
  69. package/lib/draw/drawRectangle.js +1 -1
  70. package/lib/draw/drawRectangle.js.map +1 -1
  71. package/lib/draw/utils/roundPoint.d.ts +8 -0
  72. package/lib/draw/utils/roundPoint.d.ts.map +1 -0
  73. package/lib/draw/utils/roundPoint.js +16 -0
  74. package/lib/draw/utils/roundPoint.js.map +1 -0
  75. package/lib/featureMatching/descriptors/getBrief.d.ts +15 -0
  76. package/lib/featureMatching/descriptors/getBrief.d.ts.map +1 -0
  77. package/lib/featureMatching/descriptors/getBrief.js +33 -0
  78. package/lib/featureMatching/descriptors/getBrief.js.map +1 -0
  79. package/lib/featureMatching/descriptors/getBriefDescriptors.js +1 -1
  80. package/lib/featureMatching/descriptors/getBriefDescriptors.js.map +1 -1
  81. package/lib/featureMatching/index.d.ts +6 -5
  82. package/lib/featureMatching/index.d.ts.map +1 -1
  83. package/lib/featureMatching/index.js +6 -5
  84. package/lib/featureMatching/index.js.map +1 -1
  85. package/lib/featureMatching/keypoints/getFastKeypoints.js +1 -1
  86. package/lib/featureMatching/keypoints/getFastKeypoints.js.map +1 -1
  87. package/lib/featureMatching/matching/filterEuclideanDistance.d.ts +20 -0
  88. package/lib/featureMatching/matching/filterEuclideanDistance.d.ts.map +1 -0
  89. package/lib/featureMatching/matching/filterEuclideanDistance.js +47 -0
  90. package/lib/featureMatching/matching/filterEuclideanDistance.js.map +1 -0
  91. package/lib/featureMatching/matching/filterSmallestDistanceMatches.d.ts +9 -0
  92. package/lib/featureMatching/matching/filterSmallestDistanceMatches.d.ts.map +1 -0
  93. package/lib/featureMatching/matching/filterSmallestDistanceMatches.js +29 -0
  94. package/lib/featureMatching/matching/filterSmallestDistanceMatches.js.map +1 -0
  95. package/lib/featureMatching/visualize/overlapImages.d.ts +29 -0
  96. package/lib/featureMatching/visualize/overlapImages.d.ts.map +1 -0
  97. package/lib/featureMatching/visualize/overlapImages.js +37 -0
  98. package/lib/featureMatching/visualize/overlapImages.js.map +1 -0
  99. package/lib/filters/autoLevel.js +1 -1
  100. package/lib/filters/autoLevel.js.map +1 -1
  101. package/lib/filters/flipX.js +1 -1
  102. package/lib/filters/flipX.js.map +1 -1
  103. package/lib/filters/flipY.js +1 -1
  104. package/lib/filters/flipY.js.map +1 -1
  105. package/lib/filters/gradientFilter.js +1 -1
  106. package/lib/filters/gradientFilter.js.map +1 -1
  107. package/lib/filters/hypotenuse.js +2 -2
  108. package/lib/filters/hypotenuse.js.map +1 -1
  109. package/lib/filters/level.js +2 -2
  110. package/lib/filters/level.js.map +1 -1
  111. package/lib/filters/medianFilter.js +1 -1
  112. package/lib/filters/medianFilter.js.map +1 -1
  113. package/lib/filters/pixelate.js +1 -1
  114. package/lib/filters/pixelate.js.map +1 -1
  115. package/lib/geometry/resize.js +1 -1
  116. package/lib/geometry/resize.js.map +1 -1
  117. package/lib/load/decodePng.js +1 -1
  118. package/lib/load/decodePng.js.map +1 -1
  119. package/lib/load/readCanvas.js +1 -1
  120. package/lib/load/readCanvas.js.map +1 -1
  121. package/lib/load/readImg.js +1 -1
  122. package/lib/load/readImg.js.map +1 -1
  123. package/lib/morphology/bottomHat.js +2 -2
  124. package/lib/morphology/bottomHat.js.map +1 -1
  125. package/lib/morphology/cannyEdgeDetector.js +1 -1
  126. package/lib/morphology/cannyEdgeDetector.js.map +1 -1
  127. package/lib/morphology/close.js +2 -2
  128. package/lib/morphology/close.js.map +1 -1
  129. package/lib/morphology/dilate.js +2 -2
  130. package/lib/morphology/dilate.js.map +1 -1
  131. package/lib/morphology/erode.js +2 -2
  132. package/lib/morphology/erode.js.map +1 -1
  133. package/lib/morphology/morphologicalGradient.js +2 -2
  134. package/lib/morphology/morphologicalGradient.js.map +1 -1
  135. package/lib/morphology/multipleFloodFill.js +1 -1
  136. package/lib/morphology/multipleFloodFill.js.map +1 -1
  137. package/lib/morphology/open.js +2 -2
  138. package/lib/morphology/open.js.map +1 -1
  139. package/lib/morphology/topHat.js +2 -2
  140. package/lib/morphology/topHat.js.map +1 -1
  141. package/lib/operations/copyTo.d.ts.map +1 -1
  142. package/lib/operations/copyTo.js +4 -0
  143. package/lib/operations/copyTo.js.map +1 -1
  144. package/lib/operations/crop.js +1 -1
  145. package/lib/operations/crop.js.map +1 -1
  146. package/lib/operations/cropAlpha.js +1 -1
  147. package/lib/operations/cropAlpha.js.map +1 -1
  148. package/lib/operations/extract.d.ts.map +1 -1
  149. package/lib/operations/extract.js +3 -1
  150. package/lib/operations/extract.js.map +1 -1
  151. package/lib/operations/grey.js +2 -2
  152. package/lib/operations/grey.js.map +1 -1
  153. package/lib/operations/greyAlgorithms.js +1 -1
  154. package/lib/operations/greyAlgorithms.js.map +1 -1
  155. package/lib/operations/paintMaskOnImage.d.ts.map +1 -1
  156. package/lib/operations/paintMaskOnImage.js +2 -0
  157. package/lib/operations/paintMaskOnImage.js.map +1 -1
  158. package/lib/operations/paintMaskOnMask.d.ts.map +1 -1
  159. package/lib/operations/paintMaskOnMask.js +2 -0
  160. package/lib/operations/paintMaskOnMask.js.map +1 -1
  161. package/lib/operations/thresholds/intermodes.js +1 -1
  162. package/lib/operations/thresholds/intermodes.js.map +1 -1
  163. package/lib/operations/thresholds/isodata.js +1 -1
  164. package/lib/operations/thresholds/isodata.js.map +1 -1
  165. package/lib/roi/fromMask.js +1 -1
  166. package/lib/roi/fromMask.js.map +1 -1
  167. package/lib/roi/properties/getEllipse.js +1 -1
  168. package/lib/roi/properties/getEllipse.js.map +1 -1
  169. package/lib/save/writeCanvas.js +1 -1
  170. package/lib/save/writeCanvas.js.map +1 -1
  171. package/lib/utils/clamp.js +1 -1
  172. package/lib/utils/clamp.js.map +1 -1
  173. package/lib/utils/getDefaultColor.js +1 -1
  174. package/lib/utils/getDefaultColor.js.map +1 -1
  175. package/lib/utils/setBlendedPixel.js +1 -1
  176. package/lib/utils/setBlendedPixel.js.map +1 -1
  177. package/lib/utils/validators/assert.d.ts.map +1 -0
  178. package/lib/utils/validators/assert.js.map +1 -0
  179. package/lib/utils/validators/checkKernel.d.ts.map +1 -0
  180. package/lib/utils/validators/checkKernel.js.map +1 -0
  181. package/lib/utils/validators/checkPointIsInteger.d.ts +8 -0
  182. package/lib/utils/validators/checkPointIsInteger.d.ts.map +1 -0
  183. package/lib/utils/validators/checkPointIsInteger.js +15 -0
  184. package/lib/utils/validators/checkPointIsInteger.js.map +1 -0
  185. package/{lib-esm/utils → lib/utils/validators}/checkProcessable.d.ts +1 -1
  186. package/lib/utils/validators/checkProcessable.d.ts.map +1 -0
  187. package/lib/utils/validators/checkProcessable.js.map +1 -0
  188. package/lib/utils/{validators.d.ts → validators/validators.d.ts} +2 -2
  189. package/lib/utils/validators/validators.d.ts.map +1 -0
  190. package/lib/utils/validators/validators.js.map +1 -0
  191. package/lib-esm/Image.d.ts +0 -59
  192. package/lib-esm/Image.d.ts.map +1 -1
  193. package/lib-esm/Image.js +1 -59
  194. package/lib-esm/Image.js.map +1 -1
  195. package/lib-esm/align/affineTransfrom/affineFitFunction.d.ts +10 -0
  196. package/lib-esm/align/affineTransfrom/affineFitFunction.d.ts.map +1 -0
  197. package/lib-esm/align/affineTransfrom/affineFitFunction.js +21 -0
  198. package/lib-esm/align/affineTransfrom/affineFitFunction.js.map +1 -0
  199. package/lib-esm/align/affineTransfrom/applyAffineTransform.d.ts +10 -0
  200. package/lib-esm/align/affineTransfrom/applyAffineTransform.d.ts.map +1 -0
  201. package/lib-esm/align/affineTransfrom/applyAffineTransform.js +19 -0
  202. package/lib-esm/align/affineTransfrom/applyAffineTransform.js.map +1 -0
  203. package/lib-esm/align/affineTransfrom/createAffineTransformModel.d.ts +10 -0
  204. package/lib-esm/align/affineTransfrom/createAffineTransformModel.d.ts.map +1 -0
  205. package/lib-esm/align/affineTransfrom/createAffineTransformModel.js +23 -0
  206. package/lib-esm/align/affineTransfrom/createAffineTransformModel.js.map +1 -0
  207. package/lib-esm/align/affineTransfrom/drawResult.d.ts +11 -0
  208. package/lib-esm/align/affineTransfrom/drawResult.d.ts.map +1 -0
  209. package/lib-esm/align/affineTransfrom/drawResult.js +36 -0
  210. package/lib-esm/align/affineTransfrom/drawResult.js.map +1 -0
  211. package/lib-esm/align/affineTransfrom/getAffineTransform.d.ts +100 -0
  212. package/lib-esm/align/affineTransfrom/getAffineTransform.d.ts.map +1 -0
  213. package/lib-esm/align/affineTransfrom/getAffineTransform.js +146 -0
  214. package/lib-esm/align/affineTransfrom/getAffineTransform.js.map +1 -0
  215. package/lib-esm/align/affineTransfrom/getEuclideanDistance.d.ts +9 -0
  216. package/lib-esm/align/affineTransfrom/getEuclideanDistance.d.ts.map +1 -0
  217. package/lib-esm/align/affineTransfrom/getEuclideanDistance.js +10 -0
  218. package/lib-esm/align/affineTransfrom/getEuclideanDistance.js.map +1 -0
  219. package/lib-esm/align/affineTransfrom/getMatrixFromPoints.d.ts +10 -0
  220. package/lib-esm/align/affineTransfrom/getMatrixFromPoints.d.ts.map +1 -0
  221. package/lib-esm/align/affineTransfrom/getMatrixFromPoints.js +17 -0
  222. package/lib-esm/align/affineTransfrom/getMatrixFromPoints.js.map +1 -0
  223. package/lib-esm/align/affineTransfrom/getPointsFromMatrix.d.ts +9 -0
  224. package/lib-esm/align/affineTransfrom/getPointsFromMatrix.d.ts.map +1 -0
  225. package/lib-esm/align/affineTransfrom/getPointsFromMatrix.js +13 -0
  226. package/lib-esm/align/affineTransfrom/getPointsFromMatrix.js.map +1 -0
  227. package/lib-esm/align/alignMinDifference.d.ts +20 -0
  228. package/lib-esm/align/alignMinDifference.d.ts.map +1 -0
  229. package/lib-esm/align/alignMinDifference.js +59 -0
  230. package/lib-esm/align/alignMinDifference.js.map +1 -0
  231. package/lib-esm/align/index.d.ts +3 -0
  232. package/lib-esm/align/index.d.ts.map +1 -0
  233. package/lib-esm/align/index.js +3 -0
  234. package/lib-esm/align/index.js.map +1 -0
  235. package/lib-esm/compare/computeSsim.js +2 -2
  236. package/lib-esm/compare/computeSsim.js.map +1 -1
  237. package/lib-esm/compare/subtract.js +2 -2
  238. package/lib-esm/compare/subtract.js.map +1 -1
  239. package/lib-esm/compute/histogram.js +1 -1
  240. package/lib-esm/compute/histogram.js.map +1 -1
  241. package/lib-esm/correctColor/correctColor.js +1 -1
  242. package/lib-esm/correctColor/correctColor.js.map +1 -1
  243. package/lib-esm/draw/drawCircleOnImage.d.ts.map +1 -1
  244. package/lib-esm/draw/drawCircleOnImage.js +5 -5
  245. package/lib-esm/draw/drawCircleOnImage.js.map +1 -1
  246. package/lib-esm/draw/drawLineOnImage.js +3 -3
  247. package/lib-esm/draw/drawLineOnImage.js.map +1 -1
  248. package/lib-esm/draw/drawMarker.js +2 -2
  249. package/lib-esm/draw/drawMarker.js.map +1 -1
  250. package/lib-esm/draw/drawPoints.d.ts +1 -1
  251. package/lib-esm/draw/drawPoints.d.ts.map +1 -1
  252. package/lib-esm/draw/drawPoints.js +3 -3
  253. package/lib-esm/draw/drawPoints.js.map +1 -1
  254. package/lib-esm/draw/drawPolygonOnImage.js +2 -2
  255. package/lib-esm/draw/drawPolygonOnImage.js.map +1 -1
  256. package/lib-esm/draw/drawPolylineOnImage.js +2 -2
  257. package/lib-esm/draw/drawPolylineOnImage.js.map +1 -1
  258. package/lib-esm/draw/drawRectangle.js +1 -1
  259. package/lib-esm/draw/drawRectangle.js.map +1 -1
  260. package/lib-esm/draw/utils/roundPoint.d.ts +8 -0
  261. package/lib-esm/draw/utils/roundPoint.d.ts.map +1 -0
  262. package/lib-esm/draw/utils/roundPoint.js +12 -0
  263. package/lib-esm/draw/utils/roundPoint.js.map +1 -0
  264. package/lib-esm/featureMatching/descriptors/getBrief.d.ts +15 -0
  265. package/lib-esm/featureMatching/descriptors/getBrief.d.ts.map +1 -0
  266. package/lib-esm/featureMatching/descriptors/getBrief.js +29 -0
  267. package/lib-esm/featureMatching/descriptors/getBrief.js.map +1 -0
  268. package/lib-esm/featureMatching/descriptors/getBriefDescriptors.js +1 -1
  269. package/lib-esm/featureMatching/descriptors/getBriefDescriptors.js.map +1 -1
  270. package/lib-esm/featureMatching/index.d.ts +6 -5
  271. package/lib-esm/featureMatching/index.d.ts.map +1 -1
  272. package/lib-esm/featureMatching/index.js +6 -5
  273. package/lib-esm/featureMatching/index.js.map +1 -1
  274. package/lib-esm/featureMatching/keypoints/getFastKeypoints.js +1 -1
  275. package/lib-esm/featureMatching/keypoints/getFastKeypoints.js.map +1 -1
  276. package/lib-esm/featureMatching/matching/filterEuclideanDistance.d.ts +20 -0
  277. package/lib-esm/featureMatching/matching/filterEuclideanDistance.d.ts.map +1 -0
  278. package/lib-esm/featureMatching/matching/filterEuclideanDistance.js +43 -0
  279. package/lib-esm/featureMatching/matching/filterEuclideanDistance.js.map +1 -0
  280. package/lib-esm/featureMatching/matching/filterSmallestDistanceMatches.d.ts +9 -0
  281. package/lib-esm/featureMatching/matching/filterSmallestDistanceMatches.d.ts.map +1 -0
  282. package/lib-esm/featureMatching/matching/filterSmallestDistanceMatches.js +25 -0
  283. package/lib-esm/featureMatching/matching/filterSmallestDistanceMatches.js.map +1 -0
  284. package/lib-esm/featureMatching/visualize/overlapImages.d.ts +29 -0
  285. package/lib-esm/featureMatching/visualize/overlapImages.d.ts.map +1 -0
  286. package/lib-esm/featureMatching/visualize/overlapImages.js +33 -0
  287. package/lib-esm/featureMatching/visualize/overlapImages.js.map +1 -0
  288. package/lib-esm/filters/autoLevel.js +1 -1
  289. package/lib-esm/filters/autoLevel.js.map +1 -1
  290. package/lib-esm/filters/flipX.js +1 -1
  291. package/lib-esm/filters/flipX.js.map +1 -1
  292. package/lib-esm/filters/flipY.js +1 -1
  293. package/lib-esm/filters/flipY.js.map +1 -1
  294. package/lib-esm/filters/gradientFilter.js +1 -1
  295. package/lib-esm/filters/gradientFilter.js.map +1 -1
  296. package/lib-esm/filters/hypotenuse.js +2 -2
  297. package/lib-esm/filters/hypotenuse.js.map +1 -1
  298. package/lib-esm/filters/level.js +2 -2
  299. package/lib-esm/filters/level.js.map +1 -1
  300. package/lib-esm/filters/medianFilter.js +1 -1
  301. package/lib-esm/filters/medianFilter.js.map +1 -1
  302. package/lib-esm/filters/pixelate.js +1 -1
  303. package/lib-esm/filters/pixelate.js.map +1 -1
  304. package/lib-esm/geometry/resize.js +1 -1
  305. package/lib-esm/geometry/resize.js.map +1 -1
  306. package/lib-esm/load/decodePng.js +1 -1
  307. package/lib-esm/load/decodePng.js.map +1 -1
  308. package/lib-esm/load/readCanvas.js +1 -1
  309. package/lib-esm/load/readCanvas.js.map +1 -1
  310. package/lib-esm/load/readImg.js +1 -1
  311. package/lib-esm/load/readImg.js.map +1 -1
  312. package/lib-esm/morphology/bottomHat.js +2 -2
  313. package/lib-esm/morphology/bottomHat.js.map +1 -1
  314. package/lib-esm/morphology/cannyEdgeDetector.js +1 -1
  315. package/lib-esm/morphology/cannyEdgeDetector.js.map +1 -1
  316. package/lib-esm/morphology/close.js +2 -2
  317. package/lib-esm/morphology/close.js.map +1 -1
  318. package/lib-esm/morphology/dilate.js +2 -2
  319. package/lib-esm/morphology/dilate.js.map +1 -1
  320. package/lib-esm/morphology/erode.js +2 -2
  321. package/lib-esm/morphology/erode.js.map +1 -1
  322. package/lib-esm/morphology/morphologicalGradient.js +2 -2
  323. package/lib-esm/morphology/morphologicalGradient.js.map +1 -1
  324. package/lib-esm/morphology/multipleFloodFill.js +1 -1
  325. package/lib-esm/morphology/multipleFloodFill.js.map +1 -1
  326. package/lib-esm/morphology/open.js +2 -2
  327. package/lib-esm/morphology/open.js.map +1 -1
  328. package/lib-esm/morphology/topHat.js +2 -2
  329. package/lib-esm/morphology/topHat.js.map +1 -1
  330. package/lib-esm/operations/copyTo.d.ts.map +1 -1
  331. package/lib-esm/operations/copyTo.js +4 -0
  332. package/lib-esm/operations/copyTo.js.map +1 -1
  333. package/lib-esm/operations/crop.js +1 -1
  334. package/lib-esm/operations/crop.js.map +1 -1
  335. package/lib-esm/operations/cropAlpha.js +1 -1
  336. package/lib-esm/operations/cropAlpha.js.map +1 -1
  337. package/lib-esm/operations/extract.d.ts.map +1 -1
  338. package/lib-esm/operations/extract.js +3 -1
  339. package/lib-esm/operations/extract.js.map +1 -1
  340. package/lib-esm/operations/grey.js +2 -2
  341. package/lib-esm/operations/grey.js.map +1 -1
  342. package/lib-esm/operations/greyAlgorithms.js +1 -1
  343. package/lib-esm/operations/greyAlgorithms.js.map +1 -1
  344. package/lib-esm/operations/paintMaskOnImage.d.ts.map +1 -1
  345. package/lib-esm/operations/paintMaskOnImage.js +2 -0
  346. package/lib-esm/operations/paintMaskOnImage.js.map +1 -1
  347. package/lib-esm/operations/paintMaskOnMask.d.ts.map +1 -1
  348. package/lib-esm/operations/paintMaskOnMask.js +2 -0
  349. package/lib-esm/operations/paintMaskOnMask.js.map +1 -1
  350. package/lib-esm/operations/thresholds/intermodes.js +1 -1
  351. package/lib-esm/operations/thresholds/intermodes.js.map +1 -1
  352. package/lib-esm/operations/thresholds/isodata.js +1 -1
  353. package/lib-esm/operations/thresholds/isodata.js.map +1 -1
  354. package/lib-esm/roi/fromMask.js +1 -1
  355. package/lib-esm/roi/fromMask.js.map +1 -1
  356. package/lib-esm/roi/properties/getEllipse.js +1 -1
  357. package/lib-esm/roi/properties/getEllipse.js.map +1 -1
  358. package/lib-esm/save/writeCanvas.js +1 -1
  359. package/lib-esm/save/writeCanvas.js.map +1 -1
  360. package/lib-esm/utils/clamp.js +1 -1
  361. package/lib-esm/utils/clamp.js.map +1 -1
  362. package/lib-esm/utils/getDefaultColor.js +1 -1
  363. package/lib-esm/utils/getDefaultColor.js.map +1 -1
  364. package/lib-esm/utils/setBlendedPixel.js +1 -1
  365. package/lib-esm/utils/setBlendedPixel.js.map +1 -1
  366. package/lib-esm/utils/validators/assert.d.ts.map +1 -0
  367. package/lib-esm/utils/validators/assert.js.map +1 -0
  368. package/lib-esm/utils/validators/checkKernel.d.ts.map +1 -0
  369. package/lib-esm/utils/validators/checkKernel.js.map +1 -0
  370. package/lib-esm/utils/validators/checkPointIsInteger.d.ts +8 -0
  371. package/lib-esm/utils/validators/checkPointIsInteger.d.ts.map +1 -0
  372. package/lib-esm/utils/validators/checkPointIsInteger.js +11 -0
  373. package/lib-esm/utils/validators/checkPointIsInteger.js.map +1 -0
  374. package/{lib/utils → lib-esm/utils/validators}/checkProcessable.d.ts +1 -1
  375. package/lib-esm/utils/validators/checkProcessable.d.ts.map +1 -0
  376. package/lib-esm/utils/validators/checkProcessable.js.map +1 -0
  377. package/lib-esm/utils/{validators.d.ts → validators/validators.d.ts} +2 -2
  378. package/lib-esm/utils/validators/validators.d.ts.map +1 -0
  379. package/lib-esm/utils/validators/validators.js.map +1 -0
  380. package/package.json +3 -1
  381. package/src/Image.ts +1 -62
  382. package/src/align/affineTransfrom/affineFitFunction.ts +27 -0
  383. package/src/align/affineTransfrom/applyAffineTransform.ts +27 -0
  384. package/src/align/affineTransfrom/createAffineTransformModel.ts +31 -0
  385. package/src/align/affineTransfrom/drawResult.ts +53 -0
  386. package/src/align/affineTransfrom/getAffineTransform.ts +310 -0
  387. package/src/align/affineTransfrom/getEuclideanDistance.ts +13 -0
  388. package/src/align/affineTransfrom/getMatrixFromPoints.ts +20 -0
  389. package/src/align/affineTransfrom/getPointsFromMatrix.ts +17 -0
  390. package/src/align/alignMinDifference.ts +79 -0
  391. package/src/align/index.ts +2 -0
  392. package/src/compare/computeSsim.ts +2 -2
  393. package/src/compare/subtract.ts +2 -2
  394. package/src/compute/histogram.ts +1 -1
  395. package/src/correctColor/correctColor.ts +1 -1
  396. package/src/draw/drawCircleOnImage.ts +7 -6
  397. package/src/draw/drawLineOnImage.ts +3 -3
  398. package/src/draw/drawMarker.ts +2 -2
  399. package/src/draw/drawPoints.ts +5 -5
  400. package/src/draw/drawPolygonOnImage.ts +2 -2
  401. package/src/draw/drawPolylineOnImage.ts +2 -2
  402. package/src/draw/drawRectangle.ts +1 -1
  403. package/src/draw/utils/roundPoint.ts +13 -0
  404. package/src/featureMatching/descriptors/getBrief.ts +41 -0
  405. package/src/featureMatching/descriptors/getBriefDescriptors.ts +1 -1
  406. package/src/featureMatching/index.ts +6 -5
  407. package/src/featureMatching/keypoints/getFastKeypoints.ts +1 -1
  408. package/src/featureMatching/matching/filterEuclideanDistance.ts +69 -0
  409. package/src/featureMatching/matching/filterSmallestDistanceMatches.ts +33 -0
  410. package/src/featureMatching/visualize/overlapImages.ts +64 -0
  411. package/src/filters/autoLevel.ts +1 -1
  412. package/src/filters/flipX.ts +1 -1
  413. package/src/filters/flipY.ts +1 -1
  414. package/src/filters/gradientFilter.ts +1 -1
  415. package/src/filters/hypotenuse.ts +2 -2
  416. package/src/filters/level.ts +2 -2
  417. package/src/filters/medianFilter.ts +1 -1
  418. package/src/filters/pixelate.ts +1 -1
  419. package/src/geometry/resize.ts +1 -1
  420. package/src/load/decodePng.ts +1 -1
  421. package/src/load/readCanvas.ts +1 -1
  422. package/src/load/readImg.ts +1 -1
  423. package/src/morphology/bottomHat.ts +2 -2
  424. package/src/morphology/cannyEdgeDetector.ts +1 -1
  425. package/src/morphology/close.ts +2 -2
  426. package/src/morphology/dilate.ts +2 -2
  427. package/src/morphology/erode.ts +2 -2
  428. package/src/morphology/morphologicalGradient.ts +2 -2
  429. package/src/morphology/multipleFloodFill.ts +1 -1
  430. package/src/morphology/open.ts +2 -2
  431. package/src/morphology/topHat.ts +2 -2
  432. package/src/operations/copyTo.ts +5 -0
  433. package/src/operations/crop.ts +1 -1
  434. package/src/operations/cropAlpha.ts +1 -1
  435. package/src/operations/extract.ts +4 -1
  436. package/src/operations/grey.ts +2 -2
  437. package/src/operations/greyAlgorithms.ts +1 -1
  438. package/src/operations/paintMaskOnImage.ts +3 -0
  439. package/src/operations/paintMaskOnMask.ts +3 -0
  440. package/src/operations/thresholds/intermodes.ts +1 -1
  441. package/src/operations/thresholds/isodata.ts +1 -1
  442. package/src/roi/fromMask.ts +1 -1
  443. package/src/roi/properties/getEllipse.ts +1 -1
  444. package/src/save/writeCanvas.ts +1 -1
  445. package/src/utils/clamp.ts +1 -1
  446. package/src/utils/getDefaultColor.ts +1 -1
  447. package/src/utils/setBlendedPixel.ts +1 -1
  448. package/src/utils/validators/checkPointIsInteger.ts +12 -0
  449. package/src/utils/{checkProcessable.ts → validators/checkProcessable.ts} +1 -1
  450. package/src/utils/{validators.ts → validators/validators.ts} +2 -2
  451. package/lib/utils/assert.d.ts.map +0 -1
  452. package/lib/utils/assert.js.map +0 -1
  453. package/lib/utils/checkKernel.d.ts.map +0 -1
  454. package/lib/utils/checkKernel.js.map +0 -1
  455. package/lib/utils/checkProcessable.d.ts.map +0 -1
  456. package/lib/utils/checkProcessable.js.map +0 -1
  457. package/lib/utils/validators.d.ts.map +0 -1
  458. package/lib/utils/validators.js.map +0 -1
  459. package/lib-esm/utils/assert.d.ts.map +0 -1
  460. package/lib-esm/utils/assert.js.map +0 -1
  461. package/lib-esm/utils/checkKernel.d.ts.map +0 -1
  462. package/lib-esm/utils/checkKernel.js.map +0 -1
  463. package/lib-esm/utils/checkProcessable.d.ts.map +0 -1
  464. package/lib-esm/utils/checkProcessable.js.map +0 -1
  465. package/lib-esm/utils/validators.d.ts.map +0 -1
  466. package/lib-esm/utils/validators.js.map +0 -1
  467. /package/lib/utils/{assert.d.ts → validators/assert.d.ts} +0 -0
  468. /package/lib/utils/{assert.js → validators/assert.js} +0 -0
  469. /package/lib/utils/{checkKernel.d.ts → validators/checkKernel.d.ts} +0 -0
  470. /package/lib/utils/{checkKernel.js → validators/checkKernel.js} +0 -0
  471. /package/lib/utils/{checkProcessable.js → validators/checkProcessable.js} +0 -0
  472. /package/lib/utils/{validators.js → validators/validators.js} +0 -0
  473. /package/lib-esm/utils/{assert.d.ts → validators/assert.d.ts} +0 -0
  474. /package/lib-esm/utils/{assert.js → validators/assert.js} +0 -0
  475. /package/lib-esm/utils/{checkKernel.d.ts → validators/checkKernel.d.ts} +0 -0
  476. /package/lib-esm/utils/{checkKernel.js → validators/checkKernel.js} +0 -0
  477. /package/lib-esm/utils/{checkProcessable.js → validators/checkProcessable.js} +0 -0
  478. /package/lib-esm/utils/{validators.js → validators/validators.js} +0 -0
  479. /package/src/utils/{assert.ts → validators/assert.ts} +0 -0
  480. /package/src/utils/{checkKernel.ts → validators/checkKernel.ts} +0 -0
@@ -598,7 +598,7 @@ declare interface DrawPointsOptions {
598
598
  /**
599
599
  * Image to which the resulting image has to be put.
600
600
  */
601
- out?: Image_2;
601
+ out?: Image_2 | Mask;
602
602
  }
603
603
 
604
604
  declare interface DrawPolygonOnImageOptions extends DrawPolylineOnImageOptions {
@@ -1237,7 +1237,6 @@ declare class Image_2 {
1237
1237
  private readonly data;
1238
1238
  /**
1239
1239
  * Construct a new Image knowing its dimensions.
1240
- *
1241
1240
  * @param width - Image width.
1242
1241
  * @param height - Image height.
1243
1242
  * @param options - Image options.
@@ -1245,7 +1244,6 @@ declare class Image_2 {
1245
1244
  constructor(width: number, height: number, options?: ImageOptions);
1246
1245
  /**
1247
1246
  * Create a new Image based on the properties of an existing one.
1248
- *
1249
1247
  * @param other - Reference image.
1250
1248
  * @param options - Image options.
1251
1249
  * @returns New image.
@@ -1253,7 +1251,6 @@ declare class Image_2 {
1253
1251
  static createFrom(other: Image_2 | Mask, options?: CreateFromOptions): Image_2;
1254
1252
  /**
1255
1253
  * Get all the channels of a pixel.
1256
- *
1257
1254
  * @param column - Column index.
1258
1255
  * @param row - Row index.
1259
1256
  * @returns Channels of the pixel.
@@ -1263,7 +1260,6 @@ declare class Image_2 {
1263
1260
  getRow(row: number): number[][];
1264
1261
  /**
1265
1262
  * Set all the channels of a pixel.
1266
- *
1267
1263
  * @param column - Column index.
1268
1264
  * @param row - Row index.
1269
1265
  * @param value - New color of the pixel to set.
@@ -1271,7 +1267,6 @@ declare class Image_2 {
1271
1267
  setPixel(column: number, row: number, value: number[]): void;
1272
1268
  /**
1273
1269
  * Set all the channels of a pixel if the coordinates are inside the image.
1274
- *
1275
1270
  * @param column - Column index.
1276
1271
  * @param row - Row index.
1277
1272
  * @param value - New color of the pixel to set.
@@ -1279,21 +1274,18 @@ declare class Image_2 {
1279
1274
  setVisiblePixel(column: number, row: number, value: number[]): void;
1280
1275
  /**
1281
1276
  * Get all the channels of a pixel using its index.
1282
- *
1283
1277
  * @param index - Index of the pixel.
1284
1278
  * @returns Channels of the pixel.
1285
1279
  */
1286
1280
  getPixelByIndex(index: number): number[];
1287
1281
  /**
1288
1282
  * Set all the channels of a pixel using its index.
1289
- *
1290
1283
  * @param index - Index of the pixel.
1291
1284
  * @param value - New channel values of the pixel to set.
1292
1285
  */
1293
1286
  setPixelByIndex(index: number, value: number[]): void;
1294
1287
  /**
1295
1288
  * Get the value of a specific pixel channel. Select pixel using coordinates.
1296
- *
1297
1289
  * @param column - Column index.
1298
1290
  * @param row - Row index.
1299
1291
  * @param channel - Channel index.
@@ -1302,7 +1294,6 @@ declare class Image_2 {
1302
1294
  getValue(column: number, row: number, channel: number): number;
1303
1295
  /**
1304
1296
  * Set the value of a specific pixel channel. Select pixel using coordinates.
1305
- *
1306
1297
  * @param column - Column index.
1307
1298
  * @param row - Row index.
1308
1299
  * @param channel - Channel index.
@@ -1311,7 +1302,6 @@ declare class Image_2 {
1311
1302
  setValue(column: number, row: number, channel: number, value: number): void;
1312
1303
  /**
1313
1304
  * Get the value of a specific pixel channel. Select pixel using index.
1314
- *
1315
1305
  * @param index - Index of the pixel.
1316
1306
  * @param channel - Channel index.
1317
1307
  * @returns Value of the channel of the pixel.
@@ -1319,7 +1309,6 @@ declare class Image_2 {
1319
1309
  getValueByIndex(index: number, channel: number): number;
1320
1310
  /**
1321
1311
  * Set the value of a specific pixel channel. Select pixel using index.
1322
- *
1323
1312
  * @param index - Index of the pixel.
1324
1313
  * @param channel - Channel index.
1325
1314
  * @param value - Value to set.
@@ -1327,7 +1316,6 @@ declare class Image_2 {
1327
1316
  setValueByIndex(index: number, channel: number, value: number): void;
1328
1317
  /**
1329
1318
  * Get the value of a specific pixel channel. Select pixel using a point.
1330
- *
1331
1319
  * @param point - Coordinates of the desired pixel.
1332
1320
  * @param channel - Channel index.
1333
1321
  * @returns Value of the channel of the pixel.
@@ -1335,7 +1323,6 @@ declare class Image_2 {
1335
1323
  getValueByPoint(point: Point, channel: number): number;
1336
1324
  /**
1337
1325
  * Set the value of a specific pixel channel. Select pixel using a point.
1338
- *
1339
1326
  * @param point - Coordinates of the pixel.
1340
1327
  * @param channel - Channel index.
1341
1328
  * @param value - Value to set.
@@ -1343,7 +1330,6 @@ declare class Image_2 {
1343
1330
  setValueByPoint(point: Point, channel: number, value: number): void;
1344
1331
  /**
1345
1332
  * Find the min and max values of each channel of the image.
1346
- *
1347
1333
  * @returns An object with arrays of the min and max values.
1348
1334
  */
1349
1335
  minMax(): {
@@ -1352,7 +1338,6 @@ declare class Image_2 {
1352
1338
  };
1353
1339
  /**
1354
1340
  * Return the raw image data.
1355
- *
1356
1341
  * @returns The raw data.
1357
1342
  */
1358
1343
  getRawImage(): {
@@ -1364,14 +1349,12 @@ declare class Image_2 {
1364
1349
  };
1365
1350
  /**
1366
1351
  * Fill the image with a value or a color.
1367
- *
1368
1352
  * @param value - Value or color.
1369
1353
  * @returns The image instance.
1370
1354
  */
1371
1355
  fill(value: number | number[]): this;
1372
1356
  /**
1373
1357
  * Fill one channel with a value.
1374
- *
1375
1358
  * @param channel - The channel to fill.
1376
1359
  * @param value - The new value.
1377
1360
  * @returns The image instance.
@@ -1379,33 +1362,28 @@ declare class Image_2 {
1379
1362
  fillChannel(channel: number, value: number): this;
1380
1363
  /**
1381
1364
  * Get one channel of the image as an array.
1382
- *
1383
1365
  * @param channel - The channel to fill.
1384
1366
  * @returns Array with the channel values.
1385
1367
  */
1386
1368
  getChannel(channel: number): number[];
1387
1369
  /**
1388
1370
  * Fill the alpha channel with the specified value.
1389
- *
1390
1371
  * @param value - New channel value.
1391
1372
  * @returns The image instance.
1392
1373
  */
1393
1374
  fillAlpha(value: number): this;
1394
1375
  /**
1395
1376
  * Create a copy of this image.
1396
- *
1397
1377
  * @returns The image clone.
1398
1378
  */
1399
1379
  clone(): Image_2;
1400
1380
  /**
1401
1381
  * Modify all the values of the image using the given callback.
1402
- *
1403
1382
  * @param cb - Callback that modifies a given value.
1404
1383
  */
1405
1384
  changeEach(cb: (value: number) => number): void;
1406
1385
  /**
1407
1386
  * Get the coordinates of a point in the image. The reference is the top-left corner.
1408
- *
1409
1387
  * @param coordinates - The point for which you want the coordinates.
1410
1388
  * @param round - Whether the coordinates should be rounded. This is useful when you want the center of the image.
1411
1389
  * @returns Coordinates of the point in the format [column, row].
@@ -1413,7 +1391,6 @@ declare class Image_2 {
1413
1391
  getCoordinates(coordinates: ImageCoordinates, round?: boolean): Point;
1414
1392
  /**
1415
1393
  * Subtract other from an image.
1416
- *
1417
1394
  * @param other - Image to subtract.
1418
1395
  * @param options - Inversion options.
1419
1396
  * @returns The subtracted image.
@@ -1422,25 +1399,21 @@ declare class Image_2 {
1422
1399
  histogram(options?: HistogramOptions): Uint32Array;
1423
1400
  /**
1424
1401
  * Compute the mean pixel of an image.
1425
- *
1426
1402
  * @returns The mean pixel.
1427
1403
  */
1428
1404
  mean(): number[];
1429
1405
  /**
1430
1406
  * Compute the median pixel of an image.
1431
- *
1432
1407
  * @returns The median pixel.
1433
1408
  */
1434
1409
  median(): number[];
1435
1410
  /**
1436
1411
  * Compute the variance of each channel of an image.
1437
- *
1438
1412
  * @returns The variance of the channels of the image.
1439
1413
  */
1440
1414
  variance(): number[];
1441
1415
  /**
1442
1416
  * Draw a set of points on an image.
1443
- *
1444
1417
  * @param points - Array of points.
1445
1418
  * @param options - Draw points on Image options.
1446
1419
  * @returns New mask.
@@ -1448,7 +1421,6 @@ declare class Image_2 {
1448
1421
  drawPoints(points: Point[], options?: DrawPointsOptions): Image_2;
1449
1422
  /**
1450
1423
  * Draw a line defined by two points onto an image.
1451
- *
1452
1424
  * @param from - Line starting point.
1453
1425
  * @param to - Line ending point.
1454
1426
  * @param options - Draw Line options.
@@ -1457,14 +1429,12 @@ declare class Image_2 {
1457
1429
  drawLine(from: Point, to: Point, options?: DrawLineOnImageOptions): Image_2;
1458
1430
  /**
1459
1431
  * Draw a rectangle defined by position of the top-left corner, width and height.
1460
- *
1461
1432
  * @param options - Draw rectangle options.
1462
1433
  * @returns The image with the rectangle drawing.
1463
1434
  */
1464
1435
  drawRectangle(options?: DrawRectangleOptions<Image_2>): Image_2;
1465
1436
  /**
1466
1437
  * Draw a polyline defined by an array of points on an image.
1467
- *
1468
1438
  * @param points - Polyline array of points.
1469
1439
  * @param options - Draw polyline options.
1470
1440
  * @returns The image with the polyline drawing.
@@ -1472,7 +1442,6 @@ declare class Image_2 {
1472
1442
  drawPolyline(points: Point[], options?: DrawPolylineOnImageOptions): Image_2;
1473
1443
  /**
1474
1444
  * Draw a polygon defined by an array of points onto an image.
1475
- *
1476
1445
  * @param points - Polygon vertices.
1477
1446
  * @param options - Draw Line options.
1478
1447
  * @returns The image with the polygon drawing.
@@ -1480,7 +1449,6 @@ declare class Image_2 {
1480
1449
  drawPolygon(points: Point[], options?: DrawPolygonOnImageOptions): Image_2;
1481
1450
  /**
1482
1451
  * Draw a circle defined by center and radius onto an image.
1483
- *
1484
1452
  * @param center - Circle center.
1485
1453
  * @param radius - Circle radius.
1486
1454
  * @param options - Draw circle options.
@@ -1489,7 +1457,6 @@ declare class Image_2 {
1489
1457
  drawCircle(center: Point, radius: number, options?: DrawCircleOnImageOptions): Image_2;
1490
1458
  /**
1491
1459
  * Draw a marker on the image.
1492
- *
1493
1460
  * @param point - Marker center point.
1494
1461
  * @param options - Draw marker options.
1495
1462
  * @returns The image with the marker drawing.
@@ -1497,7 +1464,6 @@ declare class Image_2 {
1497
1464
  drawMarker(point: Point, options?: DrawMarkerOptions): Image_2;
1498
1465
  /**
1499
1466
  * Draw markers on the image.
1500
- *
1501
1467
  * @param points - Markers center points.
1502
1468
  * @param options - Draw marker options.
1503
1469
  * @returns The image with the markers drawing.
@@ -1511,7 +1477,6 @@ declare class Image_2 {
1511
1477
  threshold(options?: ThresholdOptions): Mask;
1512
1478
  /**
1513
1479
  * Crop the input image to a desired size.
1514
- *
1515
1480
  * @param [options] - Crop options.
1516
1481
  * @returns The new cropped image.
1517
1482
  */
@@ -1519,14 +1484,12 @@ declare class Image_2 {
1519
1484
  /**
1520
1485
  * Crops the image based on the alpha channel
1521
1486
  * This removes lines and columns where the alpha channel is lower than a threshold value.
1522
- *
1523
1487
  * @param options - Crop alpha options.
1524
1488
  * @returns The cropped image.
1525
1489
  */
1526
1490
  cropAlpha(options?: CropAlphaOptions): Image_2;
1527
1491
  /**
1528
1492
  * Extract the pixels of an image, as specified in a mask.
1529
- *
1530
1493
  * @param mask - The mask defining which pixels to keep.
1531
1494
  * @param options - Extract options.
1532
1495
  * @returns The extracted image.
@@ -1534,7 +1497,6 @@ declare class Image_2 {
1534
1497
  extract(mask: Mask, options?: ExtractOptions): Image_2;
1535
1498
  /**
1536
1499
  * Paint a mask onto an image and the given position and with the given color.
1537
- *
1538
1500
  * @param mask - Mask to paint on the image.
1539
1501
  * @param options - Paint mask options.
1540
1502
  * @returns The painted image.
@@ -1545,7 +1507,6 @@ declare class Image_2 {
1545
1507
  directConvolution(kernel: number[][], options?: ConvolutionOptions): Image_2;
1546
1508
  /**
1547
1509
  * Compute direct convolution of an image and return an array with the raw values.
1548
- *
1549
1510
  * @param kernel - Kernel used for the convolution.
1550
1511
  * @param options - Convolution options.
1551
1512
  * @returns Array with the raw convoluted values.
@@ -1554,28 +1515,24 @@ declare class Image_2 {
1554
1515
  separableConvolution(kernelX: number[], kernelY: number[], options?: ConvolutionOptions): Image_2;
1555
1516
  /**
1556
1517
  * Apply a gaussian filter to an image.
1557
- *
1558
1518
  * @param options - Gaussian blur options.
1559
1519
  * @returns The blurred image.
1560
1520
  */
1561
1521
  gaussianBlur(options: GaussianBlurOptions): Image_2;
1562
1522
  /**
1563
1523
  * Flip the image.
1564
- *
1565
1524
  * @param options - Flip options.
1566
1525
  * @returns The flipped image.
1567
1526
  */
1568
1527
  flip(options?: FlipOptions): Image_2;
1569
1528
  /**
1570
1529
  * Invert the colors of the image.
1571
- *
1572
1530
  * @param options - Inversion options.
1573
1531
  * @returns The inverted image.
1574
1532
  */
1575
1533
  invert(options?: InvertOptions): Image_2;
1576
1534
  /**
1577
1535
  * Calculate a new image that is the hypotenuse between the current image and the other.
1578
- *
1579
1536
  * @param other - Other image.
1580
1537
  * @param options - Hypotenuse options.
1581
1538
  * @returns Hypotenuse of the two images.
@@ -1583,28 +1540,24 @@ declare class Image_2 {
1583
1540
  hypotenuse(other: Image_2, options?: HypotenuseOptions): Image_2;
1584
1541
  /**
1585
1542
  * Apply a gradient filter to an image.
1586
- *
1587
1543
  * @param options - Gradient filter options.
1588
1544
  * @returns The gradient image.
1589
1545
  */
1590
1546
  gradientFilter(options: GradientFilterOptions): Image_2;
1591
1547
  /**
1592
1548
  * Apply a derivative filter to an image.
1593
- *
1594
1549
  * @param options - Derivative filter options.
1595
1550
  * @returns The processed image.
1596
1551
  */
1597
1552
  derivativeFilter(options?: DerivativeFilterOptions): Image_2;
1598
1553
  /**
1599
1554
  * Level the image using the optional input and output value. This function allows you to enhance the image's contrast.
1600
- *
1601
1555
  * @param options - Level options.
1602
1556
  * @returns The levelled image.
1603
1557
  */
1604
1558
  level(options?: LevelOptions): Image_2;
1605
1559
  /**
1606
1560
  * Correct the colors in an image using the reference colors.
1607
- *
1608
1561
  * @param measuredColors - Colors from the image, which will be compared to the reference.
1609
1562
  * @param referenceColors - Reference colors.
1610
1563
  * @returns Image with the colors corrected.
@@ -1612,7 +1565,6 @@ declare class Image_2 {
1612
1565
  correctColor(measuredColors: RgbColor[], referenceColors: RgbColor[]): Image_2;
1613
1566
  /**
1614
1567
  * Apply a median filter to the image.
1615
- *
1616
1568
  * @param options - Options to apply for median filter.
1617
1569
  * @returns Image after median filter.
1618
1570
  */
@@ -1623,56 +1575,48 @@ declare class Image_2 {
1623
1575
  transformRotate(angle: number, options?: TransformRotateOptions): Image_2;
1624
1576
  /**
1625
1577
  * Erode an image.
1626
- *
1627
1578
  * @param options - Erode options.
1628
1579
  * @returns The eroded image.
1629
1580
  */
1630
1581
  erode(options?: ErodeOptions): Image_2;
1631
1582
  /**
1632
1583
  * Dilate an image.
1633
- *
1634
1584
  * @param options - Dilate options.
1635
1585
  * @returns The dilated image.
1636
1586
  */
1637
1587
  dilate(options?: DilateOptions): Image_2;
1638
1588
  /**
1639
1589
  * Open an image.
1640
- *
1641
1590
  * @param options - Open options.
1642
1591
  * @returns The opened image.
1643
1592
  */
1644
1593
  open(options?: OpenOptions): Image_2;
1645
1594
  /**
1646
1595
  * Close an image.
1647
- *
1648
1596
  * @param options - Close options.
1649
1597
  * @returns The closed image.
1650
1598
  */
1651
1599
  close(options?: CloseOptions): Image_2;
1652
1600
  /**
1653
1601
  * Top hat of an image.
1654
- *
1655
1602
  * @param options - Top hat options.
1656
1603
  * @returns The top-hatted image.
1657
1604
  */
1658
1605
  topHat(options?: TopHatOptions): Image_2;
1659
1606
  /**
1660
1607
  * Bottom hat of an image.
1661
- *
1662
1608
  * @param options - Bottom hat options.
1663
1609
  * @returns The bottom-hatted image.
1664
1610
  */
1665
1611
  bottomHat(options?: BottomHatOptions): Image_2;
1666
1612
  /**
1667
1613
  * Apply morphological gradient to an image.
1668
- *
1669
1614
  * @param options - Morphological gradient options.
1670
1615
  * @returns The processed image.
1671
1616
  */
1672
1617
  morphologicalGradient(options?: MorphologicalGradientOptions): Image_2;
1673
1618
  /**
1674
1619
  * Apply Canny edge detection to an image.
1675
- *
1676
1620
  * @param options - Canny edge detection options.
1677
1621
  * @returns The processed image.
1678
1622
  */
@@ -1721,7 +1665,6 @@ declare interface ImageMetadata {
1721
1665
  export declare interface ImageOptions {
1722
1666
  /**
1723
1667
  * Number of bits per value in each channel.
1724
- *
1725
1668
  * @default `8`.
1726
1669
  */
1727
1670
  bitDepth?: BitDepth;
@@ -1731,13 +1674,11 @@ export declare interface ImageOptions {
1731
1674
  data?: ImageDataArray;
1732
1675
  /**
1733
1676
  * Color model of the created image.
1734
- *
1735
1677
  * @default 'RGB'.
1736
1678
  */
1737
1679
  colorModel?: ImageColorModel;
1738
1680
  /**
1739
1681
  * Origin of the image relative to a parent image (top-left corner).
1740
- *
1741
1682
  * @default {row: 0, column: 0}
1742
1683
  */
1743
1684
  origin?: Point;