crop

Remove specific class after this jquery plugin load

北城余情 提交于 2020-02-08 06:57:05
问题 I am trying to remove .lazy-hidden class from element(image). I have simple jquery plugin given below that can resize and crop the image to correct size by tweaking the image url. So it call re-sizing function after LazyloadXT loding of image. Problem is Image has loaded and croped, But unable to remove .lazy-hidden class from element and it's opacity=0 . Fiddle >> Crop Js: $.extend($.lazyLoadXT, { onload: myfunc }); function myfunc() { var w = 200; var h = 150; $('.crop').find('img').each

MATLAB : How to crop an object from a binary image by identifying some features?

天涯浪子 提交于 2020-02-05 08:38:09
问题 I have an image like shown here: My ultimate aim is to extract the vein pattern in the finger. So What I am trying to do is the extraction of the finger object alone. For that purpose, I tried an Otsu thresholding step first, then an erosion and dilation. Now using the binary image as a mask I multiplied element wise with original image to obtain the finger alone (not that accurate though). The code is as below: I = imread('3.5.bmp'); [level] = graythresh(I); BW = im2bw(I,level); [BWm] =

What's the most simple way to crop a circle thumbnail from an image?

﹥>﹥吖頭↗ 提交于 2020-02-03 08:27:07
问题 I am trying to crop a centered (or not centered) circle from this image: I stole this code from the existing questions regarding this topic on stack overflow, something goes wrong though: import cv2 file = 'dog.png' img = cv2.imread(file) img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circle = cv2.HoughCircles(img, 3, dp=1.5, minDist=10, minRadius=1, maxRadius=10) x = circle[0][0][0] y = circle[0][0][1] r = circle[0][0][2] rectX = (x - r) rectY = (y - r) crop_img = img[rectY:(rectY+2*r), rectX:

What's the most simple way to crop a circle thumbnail from an image?

人走茶凉 提交于 2020-02-03 08:25:30
问题 I am trying to crop a centered (or not centered) circle from this image: I stole this code from the existing questions regarding this topic on stack overflow, something goes wrong though: import cv2 file = 'dog.png' img = cv2.imread(file) img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circle = cv2.HoughCircles(img, 3, dp=1.5, minDist=10, minRadius=1, maxRadius=10) x = circle[0][0][0] y = circle[0][0][1] r = circle[0][0][2] rectX = (x - r) rectY = (y - r) crop_img = img[rectY:(rectY+2*r), rectX:

.net Bitmap changes color of image

拜拜、爱过 提交于 2020-01-30 09:44:27
问题 I am trying to resize the image without the loss of any color. But I can't get this to work. See the picture below, the top one is the original, the bottom one is the one which has gone through .NET. My question is, how can I keep the colors? I have tried a lot of different settings, looking for GDI+ bugs. Changing the Palette, changing the ImageAttributes to TileFlipXY which people suggest on the internet. But none seems to work. My Code: Public Class ImageEditor Private _img As Image

.net Bitmap changes color of image

心不动则不痛 提交于 2020-01-30 09:44:07
问题 I am trying to resize the image without the loss of any color. But I can't get this to work. See the picture below, the top one is the original, the bottom one is the one which has gone through .NET. My question is, how can I keep the colors? I have tried a lot of different settings, looking for GDI+ bugs. Changing the Palette, changing the ImageAttributes to TileFlipXY which people suggest on the internet. But none seems to work. My Code: Public Class ImageEditor Private _img As Image

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

核能气质少年 提交于 2020-01-30 08:26:36
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

旧巷老猫 提交于 2020-01-30 08:26:31
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

R: crop multiple pngs and combine them into a single plot

无人久伴 提交于 2020-01-23 13:24:29
问题 I am plotting data into two plots like this: xy <- structure(list(NAME = structure(c(2L, 2L, 1L, 1L), .Label = c("CISCO", "JOHN"), class = "factor"), ID = c(41L, 41L, 57L, 57L), X_START_YEAR = c(1965L, 1932L, 1998L, 1956L), Y_START_VALUE = c(960L, -45L, 22L, -570L), X_END_YEAR = c(1968L, 1955L, 2002L, 1970L), Y_END_VALUE = c(960L, -45L, 22L, -570L), LC = structure(c(1L, 1L, 2L, 2L), .Label = c("CA", "US"), class = "factor")), .Names = c("NAME", "ID", "X_START_YEAR","Y_START_VALUE", "X_END

Upload and crop image before sending it to the server [closed]

给你一囗甜甜゛ 提交于 2020-01-20 00:44:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Is there some client components (jquery/swf) that will give the possibility to upload and crop (user should be able to select the area to crop) an image in the browser and then send the cropped image to the server? I'm on asp.net-mvc (not sure if it matters) 回答1: jcrop Jcrop is the quick and easy way to add