[request] Java: Pattern class should retain image on Pattern constructor with an awt.BufferedImage
Bug #897895 reported by
Kurz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Critical
|
RaiMan |
Bug Description
The class org.sikuli.
public Pattern(Pattern p){
imgURL = p.imgURL;
similarity = p.similarity;
dx = p.dx;
dy = p.dy;
}
Should also include image = p.image
The consequence is that when you do the following:
p = new Pattern( bufferedImage );
x = p.similarity( 0.9f ) or x = p.exact()
x no longer contains the image. Therefore it is not currently possible to change the similarity when using a Pattern based on an image.
Another great thing would be to have a constructor which takes BufferedImage and similarity.
Changed in sikuli: | |
status: | New → Fix Committed |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → x1.0 |
tags: | added: fkt-pattern |
Changed in sikuli: | |
importance: | Undecided → Critical |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Created a pull request for these changes on Github.