import_jpg1(jpg.path, auto.notcentered = TRUE, fun.notcentered = NULL, threshold = 0.5)
while
instruction wraps it, so the function may be wrong in proposing this
starting position. See the examples below for a quick example.If the point at the center of the image is not within the shape, i.e. is 'white' you have two choices defined by the 'auto.notcentered' argument. If it's TRUE, some random starting points will be tried until on of them is 'black' and within the shape; if FALSE you will be asked to click on a point within the shape.
If some pixels on the borders are not white, this functions adds a 2-pixel border of white pixels; otherwise import_Conte would fail and return an error.
Finally, remember that if the images are not in your working directory,
list.files must be called with the argument full.names=TRUE
!
Note that the use of the fun.notcentered
argument will probably leads to serious headaches
and will probably imply the dissection of these functions: import_Conte, img_plot and
import_jpg
itself
babel functions.