dahtah / imager

R package for image processing
GNU Lesser General Public License v3.0
187 stars 43 forks source link

draw_rect with filled=F #136

Open benoit-combes opened 4 years ago

benoit-combes commented 4 years ago

Dear developpers,

first thanks for making imager, it is very helpful as an R user to access these convenient functions.

I am on R 3.6.3 and installed imager thourgh install.packages.

I am interested in annotating images using rectangular shape. I tried to use the draw_rect function with the filled option to F:

draw_rect(boats,1,1,50,50,"darkgreen",filled=F) %>% plot

however, this does not draw any rectangle to the plot (I was expecting it will draw the outline of a rectangle). The code with filled=T works as expected.

Can you help me on that ? thanks in advance, B.