Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add new paint method ?
#3
Thanks for the confirmation.

I *was* going to make a procedural pass along the path, removing/repainting the pixels that are obviously "scanner-noise"
(nearly black or nearly white pixels on the edge that do not match (within threshhold) the pixels that are 5 pixels "in" from the edge)

I have scanned some images, and there are edge pixels that are black (where scan exceeds the card width) or white (where scan light causes highlight)
cannot simply remove all the outer black because some of the graphics have black that extends to the edge...
Can do some of it with select-contiguous color, but for the fine-points, a procedural brush would have been elegant.
[by now i see that the scheme API cannot even read the color value at a pixel...
nor does it expose the "color distance" calculation, so yeah: not going to happen]

I have since decided to work-around by masking off the areas where the graphic are known to reach the edge.
(and then can use selection-border and just fill the un-masked area with the know/assumed color)
It is not as "perfect", and needed to be tuned for the 6 card types, but it will suffice.

Now i need to find the gimp or script-fu equivalent of scheme's string-index function...
(so i can read the card-type from the filename, and use the correct mask values)

I've seen you ask in other posts: It's because I'm a Lisp programmer from *way* back.

Found this: (car (strbreakup orig-name "."))
[thank you, stackoverflow]

Is there a list of all the script-fu functions?
(the "browser" finds all the gimp-* functions, but all the others that are in *this* version of scheme/tinyscheme?
Reply


Messages In This Thread
Add new paint method ? - by Jack Parker - 02-03-2019, 10:48 PM
RE: Add new paint method ? - by Ofnuts - 02-04-2019, 05:50 AM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 06:59 AM
RE: Add new paint method ? - by Ofnuts - 02-05-2019, 07:32 AM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 07:04 PM
RE: Add new paint method ? - by Ofnuts - 02-05-2019, 08:27 PM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 10:56 PM
RE: Add new paint method ? - by Jack Parker - 02-06-2019, 03:45 AM
RE: Add new paint method ? - by Ofnuts - 02-06-2019, 05:30 AM
RE: Add new paint method ? - by Jack Parker - 02-06-2019, 11:28 PM
RE: Add new paint method ? - by Ofnuts - 02-07-2019, 06:57 AM
RE: Add new paint method ? - by Jack Parker - 02-16-2019, 08:03 PM
RE: Add new paint method ? - by Ofnuts - 02-16-2019, 09:12 PM
RE: Add new paint method ? - by Jack Parker - 02-20-2019, 12:29 AM
RE: Add new paint method ? - by Ofnuts - 02-20-2019, 08:38 AM

Forum Jump: