blurry

Jfreechart vertical line is blurry

帅比萌擦擦* 提交于 2019-12-02 11:43:22
问题 I am using JFreechart to generate some plots, and I found the lines in my plot is blurry, but the demo shows that all the lines are thin and without any blurry, I was wondering if there any to generate good quality plot on a panel. 回答1: With more information, I can't explain the rendering and resampling artifact illustrated in your question. Starting from MinMaxCategoryPlotDemo1.java in the demo, I added this line to get the PNG image shown. ChartUtilities.saveChartAsPNG(new File("temp.png"),

Android Low picture quality after shot

廉价感情. 提交于 2019-12-02 10:53:47
I have a button that triggers an image capture : private void capturePicture() { if(ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED){ Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); // Tiến hành gọi Capture Image intent startActivityForResult(intent, 100); } else ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CAMERA}, 200); } Right after I take the shot, I see the capture and the resolution is very low. It is saved in the local storage and when it is displayed in the app it's not

Large text appears blurry

六眼飞鱼酱① 提交于 2019-12-01 21:15:03
I'm using SFML 1.6 to make a small game, and I need to display some text, so I use the sf::String class. The problem is, when I increase the size to 96pt, the edges appear a little blurry. When I increase the size of text in Microsoft Word though, it appears very clean and has crisp edges. Is there a way to do that with SFML? Looking at the SFML sources, it appears that it is using the embedded Arial font. Yes, it can also load the .ttf font file, but I guess you didn't load it yet. So the problem is tht SFML tries to scale the fixed-size bitmap when you are rendering the text. To get rid of

Adding AnchorPanes to ScrollPanes Javafx 8

独自空忆成欢 提交于 2019-12-01 19:30:43
问题 in JavaFX, when I add an AnchorPane that has a Label inside to a ScrollPane, the whole AnchorPane comes in a tad blurry, as if it had a Photoshop-feather effect. I am using Java8 the latest release. This was not the case with Java7. Have you ran into this issue before? 回答1: I had similar problems following a java 8 upgrade: Using JavaFX Scene Builder, I noticed that under Layout: Position, I had Layout X / Y a non zero value (like 9.893739 etc). when I replaced those with 0, the blurry text

Adding AnchorPanes to ScrollPanes Javafx 8

 ̄綄美尐妖づ 提交于 2019-12-01 18:26:13
in JavaFX, when I add an AnchorPane that has a Label inside to a ScrollPane, the whole AnchorPane comes in a tad blurry, as if it had a Photoshop-feather effect. I am using Java8 the latest release. This was not the case with Java7. Have you ran into this issue before? I had similar problems following a java 8 upgrade: Using JavaFX Scene Builder, I noticed that under Layout: Position, I had Layout X / Y a non zero value (like 9.893739 etc). when I replaced those with 0, the blurry text went away. Try removing any anchor pane constraints. I've found weird calculations being done that is causing

Translate + Canvas = Blurry Text

对着背影说爱祢 提交于 2019-12-01 13:18:25
There are more than a few "CSS transform = blurry text" entries on SO already but I think I have a unique doozy here. I have tried all the other fixes with no avail. I'm implementing the CSS transform center / middle align method: .centered { position: absolute; top: 50%; left: 50%; -webkit-transform-style: preserve-3d; -webkit-transform: translate(-50%,-50%); } Once I apply an image via drawImage AND resize the canvas that is underneath the .centered element, the text starts blurring on the "half pixel". The -webkit-transform-style: preserve-3d fix has no effect. This only happens in Chrome

Translate + Canvas = Blurry Text

时光总嘲笑我的痴心妄想 提交于 2019-12-01 10:43:46
问题 There are more than a few "CSS transform = blurry text" entries on SO already but I think I have a unique doozy here. I have tried all the other fixes with no avail. I'm implementing the CSS transform center / middle align method: .centered { position: absolute; top: 50%; left: 50%; -webkit-transform-style: preserve-3d; -webkit-transform: translate(-50%,-50%); } Once I apply an image via drawImage AND resize the canvas that is underneath the .centered element, the text starts blurring on the

OpenCV, Variation of the Laplacian (Java)

半腔热情 提交于 2019-12-01 05:12:02
问题 I am attempting to locate the Variation for the Laplacian based on an image with the goal of getting a numerical value based on the blurriness of an image. This is a useful post http://www.pyimagesearch.com/2015/09/07/blur-detection-with-opencv/ cv2.Laplacian(image, cv2.CV_64F).var() I've been trying to implement the same without luck. My starting point is a byte[] representing the image (img): Mat mat = new Mat(img.getImageHeight(), img.getImageWidth(), CvType.CV_8UC3); Imgproc.cvtColor(mat,

Image deblurring on Matlab

心已入冬 提交于 2019-11-30 09:25:56
Im new to MatLab. Been playing around and reading through the help guide but i can't seem to solve this situation. I have removed the noise by using gaussian algorithm. That was successful but I've not managed to get the image to be clear, i've tried using Richardson-Lucy deblurring algorithm but it doesn't work. Any idea how can i solve this? Thnx in advance. Here's what i've done so far. image size = 21kb image dimension = 264 x 126 img = imread('car_plate.jpg') subplot(331); imshow(img), title('Original Image') PSF = fspecial('gaussian',15,15); blur = imfilter(img,PSF,'replicate'); subplot

Prevent anti-aliasing for imshow in matplotlib

浪尽此生 提交于 2019-11-30 05:36:20
When I use matplotlib's imshow() method to represent a small numpy matrix, it ends up doing some smoothing between pixels. Is there any way to disables this? It makes my figure's misleading in presentations. The figure above is a 28x28 image, so I should be seeing large squares of single colors representing each pixel (as matlab would display it when using imagesc()). But Instead, the pixels seem to be blurred with neighboring pixels. Is there a way to disable this behavior? There is an interpolation option for imshow which controls how and if interpolation will be applied to the rendering of