![]() ![]() This tutorial gives more information about floodfill function, such as how to replace the edge colors. The -fuzz parameter will avoid that colors which were originally red and became corrupted due to noise also gets replaced. In this case, I've used white to erase the region: convert -fill white -fuzz 13% \ Suppose the target color obtained by step 1 was red: grep red coord.txtįinally, use x and y as a seed to floodfill to replace the circle region by your desired color ( command source). That is the '-rotate' operator would be applied BEFORE the '-append' which is probably not what the user intended.With ImageMagick version 6, the operators will always be applied in the command line order as given by the user. Output the coordinates of each color in a text file: convert txt:- > coord.txtįind the x and y coordinates of the target color ( command source). The result (in IM v5.5.7) was that the two input images were rotated first, then appended together, producing an image like. convert -unique-colors -depth 8 txt:- > output.txt This will be used to find out which are the RGB components of the target color ( command source). Output all the unique colors in the picture. We could use the following script based on functions of ImageMagick: Pass this position as a seed to Flood Fill algorithm.Find its x and y coordinates in the image.Find the color used to draw in the scanned document (for now on, called target color). ![]() I'm thinking in a solution based on ImageMagick. Can somebody give me a hint by pointing out the above example would look like in script-fu? It looks like Gimp with script-fu could be the way to go it should be powerful enough. Now I would like the script to erase each of these areas in all of the images so my mistakes disappear in the resulting image.Īny ideas how to realize this in a Linux environment, e.g. A camera raw image file contains minimally processed data from the image sensor of either a digital camera, a motion picture film scanner, or other image. Then I scan the image (or usually many of them). There is an area where I made mistakes so I draw a red closed circle (with a pen on the actual sheet of paper) around that area. Take a color scan image (say a tiff) as input, and make simple corrections automatically based on colored corrections in the image.įor example take the simplest case: I write only black on white. I am thinking of some script which can do the following: (For example, I change mistakes I made on the original document to white.) I often scan handwritten documents to send to colleagues, and need to make corrections to the digital file once it's scanned. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |