When ever I stretch a portion of the image via Transform, a faint line will be produced from the point of the stretch/transform.
Likewise when I copy and paste a portion of the image into a layer, that new layer will be surrounded by a faint line.
The biggest problem is that when I export this out to jpeg, it is more visible.
Does any one know how I can get rid of this faint line?
Example: https://i.stack.imgur.com/mqwWR.jpg
I tried different version of GIMP, 2.8.20, 2.8.22 and 2.10.8, all result in the same issue.
Cheers
I've just encountered this problems, and after trying some different options, I found that unselecting the option "Antialiasing" in the selection tool fixed the problem for me.
See image:
Related
I am using gnuplottex in Overleaf to write a document using the IEEETran document style.
When I plot filledcurves the result kind of bad as it seems not to be in a vector graphics format; thus getting pixelated upon zooming into the figure.
Additionaly, some weird white boxes are floating around hideing parts of a label.
I developed the figure locally on my machine using the cairopdf terminal and Gnuplot 5.4.
The first picture show the resulting pdf of of Latex using the cairolatex terminal.
The second picture shows a very deep zoom in the test pdf done with the cairopdf terminal where everything looks good.
set style fill transparent solid 0.35 noborder
plot for[i=1:num_states] normal(x, word(means, i), word(std, i)) notitle with filledcurves y1=0
What is going on? I read that epslatex has some trouble with transparency is that here also the case?
The PostScript language itself (including *.eps) does not support transparency or alpha-channel colors. So no *.ps or *.eps file can portray transparent/translucent areas properly. At best it can be approximated by using some intermediate representation that does handle alpha channels and then translating the final resulting blended colors to PostScript, but that means later color balance adjustments made during viewing or printing will not preserve the correct balance in the blended areas.
There should be no problem with pdf. I don't know what caused that partial white rectangle. Maybe if you show a more complete script that created the figure?
Edited:
Using set terminal cairolatex pdf in gnuplot should solve the pixelation and transparency issues. You can create a new question if the unwanted white rectangles persist.
I am looking to find a way to draw a horizontal line of full page width on a PNG file with a single click. Thing is I am trying to draw a lot of lines and if I've to click and drag it becomes extremely inefficient.
I am working on a Windows platform.
How can I achieve this using Adobe Photoshop? Any ideas?
Thanks
Here is a sample of page. Green lines are the ones drawn.
Draw a line as you want it on a big new canva. Trim the image when done. Then Create a brush from the open file (edit > define brush preset), save it, done. Now you can use yout line as a brush.
I had a problem where I had an input image like this :
And I had to remove that sharp contrasting horizontal line in the image forehead as can been.
So tried blurring, filtering etc but nothing worked. So finally I used seamless cloning. And I got the result like this :
This pretty much solved my problem. But if you go through the documentation and this tutorial, the parameters for seamless cloning is explained properly.
There we have a srcImage which is cloned to another destinationImage. For my problem, I took the srcImage as completely white and of the rectangle around the sharp line. (Below is the white image, hold the cursor around to see).
So my problem is how did this even work, as in any other image if I have instead of the white image it throws me a fatal error. Why did it work only with white image?
I was playing around with images and came across a little game I tried to create.
You see an Image (for simplicity let's say a circle) and you have to redraw the circle as exact as possible on top of it.
All of that works in my little project already.
I want to be able to tell how many % of the image was recreated correctly (and again for simplicity no colours needed. It's always black and white)
Could I just count the the black pixels overlaying the image subtract the ones that are not and divide it by the amount of black pixels in the original?
This would look like this I guess:
ratio = (correctPixelCount - wrongPixelCount) / originalPixelCount
If yes, how would I go about getting each pixel and compare them?
If no, what else could I do?
PS: I already tried a Image compare cocoa pod called AIImageCompare.
Unfortunately it crashes for some unknown reasons.
Thank you!
We are developing an app where we need to crop an image according to the selecting object area. User will draw a line and we need to select the object and crop it .This crop need to be like the app: YourMoji
So far we have tried to get the color of the pixels along the line and then comparing those with the color of every pixel in the image and making a path from it to clip the image. But the almost going no where.
Is it possible through this way to crop an image or we are going in the wrong way? Can anyone provide a way to do this Or suggest a way to modify the way we have worked so far? Any advice and suggestions will be greatly appreciated!
Thanks in advance.
I guess what you want is the image segmentation algorithm called Graph Cut.
Here are two Github repositories, hope these would help:
GraphCut
GrabCutIOS
I'm not exactly clued up on image manipulation, but the first algorithm that comes to mind is something like this:
Take the average of the pixels in the line (as you have)
Since you appear to want faces, you might want to weight reds and blues over green. Not much green in faces of any skin tone.
For each pixel, if the colour is within a given threshold outside of your selected average, remove it / make transparent.
Perhaps the closer to the original line (or centroid), the less strict the threshold becomes.
I'd then provide the user with some tools for:
Sensitivity: how large the threshold is
Eraser: to remove parts of the image that your algorithm missed
Paintbrush: to replace parts of the image that your algorithm incorrectly removed.