image-processing

How to write AES cipher text to an image

一曲冷凌霜 提交于 2020-01-25 19:12:06
问题 In the process of image encryption using AES, when the pixel values are read and when the AES encryption applied, the cipher text results in some negative values. How is it possible to frame an encrypted image from these kind of negative values i.e., cipher text? 来源: https://stackoverflow.com/questions/33776494/how-to-write-aes-cipher-text-to-an-image

how to know pixel color using t_sampler in jocl

血红的双手。 提交于 2020-01-25 12:59:04
问题 I want to detect peaks in a binary image using jocl. The definition of my peak is a combinition of colered pixels (shown in the image) how to use t_sampler to know pixel color? const sampler_t smp = CLK_NORMALIZED_COORDS_FALSE | //Natural coordinates CLK_ADDRESS_CLAMP | //Clamp to zeros CLK_FILTER_NEAREST; //Don't interpolate PS: my image is a binary image 来源: https://stackoverflow.com/questions/38340383/how-to-know-pixel-color-using-t-sampler-in-jocl

Anisotropic Diffusion

血红的双手。 提交于 2020-01-25 12:34:05
问题 I have converted this Matlab Anisotropic Diffusion code to C++ but I am not getting the desired output. All I am getting is a black image. Can someone please check my code and give any suggestions? Below is my code: const double lambda = 1 / 7; const double k = 30; const int iter = 1; int ahN[3][3] = { {0, 1, 0}, {0, -1, 0}, {0, 0, 0} }; int ahS[3][3] = { {0, 0, 0}, {0, -1, 0}, {0, 1, 0} }; int ahE[3][3] = { {0, 0, 0}, {0, -1, 1}, {0, 0, 0} }; int ahW[3][3] = { {0, 0, 0}, {1, -1, 0}, {0, 0, 0

How to handle A LOT of images in a webpage?

南笙酒味 提交于 2020-01-25 11:52:08
问题 So im making a website and i showed it to a fellow web developer. I want to make my website a "visual experience" and every page will have at least 30 50x 50 thumbnails, a 120 x 100 image, and a couple more thumbnails. it will a a members only page so you can image, the more register users, we will have MUCH MUCH more images. in fact, each member can have his/her own photo album, which will be another set of images. So he was really worried that my site would not be optimized and said that

Divide images into blocks and compare each corresponding block

泪湿孤枕 提交于 2020-01-25 10:10:06
问题 Hi I have a set of images of size 200x200 and I want to divide these images into 10 blocks of size 20x20(each image). After the images are divided into blocks, 1) I want to compare 1st block of image 1 with 1st block of image2, image 3 and 2nd block with 2nd block of image2, image 3 and so on. 2)After comparing blocks the block with maximum value should be used and put in a final image such that the final image has blocks with maximum value from image1, image2 or image3. Is it possible to do

Count the number of atoms in a cluster

£可爱£侵袭症+ 提交于 2020-01-25 09:35:30
问题 I'm trying to make a network that identifies missing atoms from an image, and is then able to count them. So far, I have created a CNN that is able to output an image like below that solely highlights such atoms 1, and I have found an OpenCV library tat I think would be able to count all the individual white spots (https://www.geeksforgeeks.org/white-and-black-dot-detection-using-opencv-python/). However I would like to be able to count the missing atoms for a given structre: eg I've circled

Image Smoothing Using Median Filter

情到浓时终转凉″ 提交于 2020-01-25 08:53:52
问题 I am working on image smoothing using median filter. For that, I am not using the inbuilt functions within the Python library, rather I am writing my own functions. The following code is for calculating the median. def CalcMedian(Image, x, y, gridSize): #x and y are nested loops, that run over the entire image. medianList = [] row, col = Image.shape; k = int(gridSize/2); for i in range(gridSize-1): for j in range(gridSize-1): if (i+x-k)<0 or (j+y-k)<0 or (i+x-k)>row or (j+y-k)>col: break;

Is there a way to convert an image to black and white pixel by pixel?

喜欢而已 提交于 2020-01-25 08:50:45
问题 When using image = image.convert("1") on a very light grey, it'll add little black pixels to "average" it out. I'm looking for something that just looks at every individual pixel and determines whether that pixel is closer to black or to white. 回答1: Please pay attention to the documentation on PIL.Image.convert: The default method of converting a greyscale (“L”) or “RGB” image into a bilevel (mode “1”) image uses Floyd-Steinberg dither to approximate the original image luminosity levels. If

How to prepare training data for image segmentation

一个人想着一个人 提交于 2020-01-25 08:35:29
问题 I am using bounding box marking tools like BBox and YOLO marker for object localisation. I wanted to know is there any equivalent marking tools available for image segmentation tasks. How people in academia and research are preparing data sets for these image segmentation tasks. Recent Kaggle competition severstal-steel-defect-detection has pixel level segmentation information. Which tool they used to prepare this data? 回答1: Generally speaking it is a pretty complex but a common task, so you

How to capture a picture after every 5 seconds of camera using opencv python and Raspbery Pi 3?

空扰寡人 提交于 2020-01-25 07:40:26
问题 I am working on a school project which is related to Image Processing using OpenCV Python and Raspberry Pi 3. The hardware of Raspberry Pi 3 cannot handle the video from camera consecutively, therefore I'm thinking about only capture a picture after every 5 seconds from the camera and use it to recognize what I need, then continue. I did some research on the internet and found a function called time.sleep(5), however this function only pause the camera 5 seconds and then continue. Can anyone