Saturday, October 29, 2022
JavaScript Functions as JavaScript Variables
Birthday Cake Candles Problem(Hacker Rank)
You are in charge of the cake for a child's birthday. You have decided the cake will have one candle for each year of their total age. They will only be able to blow out the tallest of the candles. Count how many candles are tallest.
Example
The maximum height candles are units high. There are of them, so return .
SOLUTION:
- Find the tallest candle.
- Count the number of tallest candles using linq.
- return result.
Thursday, November 18, 2021
What is image processing? What are the applications of image processing in computer science?
What is image processing?
Image processing is a method to perform some operations on an image, in order to get an enhanced image or to extract some useful information from it. it is a type of signal processing in which input is an image and output may be image or characteristics associated with that image. Nowadays, image processing is among rapidly growing technologies. it forms core research are within engineering and computer science disciplines too.
Image processing basically includes the following three steps.
1. Importing the image via image acquisition tools.
2. Analyzing and manipulating the image.
3. Output in which result can be altered image or report that is based on image analysis.
What are the applications of image processing in computer science?
Some of the major fields in which digital image processing is widely used are mentioned below
1. Image sharpening and restoration
2. Medical field
3. Remote sensing
4. Transmission and encoding
5. Machine/Robot vision
6. Color processing
7. Pattern recognition
8. Video processing
9. Microscopic Imaging
10. Others
What is the interactive computer system? Explain. What is resolution? What is the impact of resolution in display devices?
What is the interactive computer system?
interactive computer system involves a two-way communication between computer and user.
here the observer is given some control over the image by providing him with an input device for example the video game controller of the ping pong game.
this helps him to signal his request to the computer. The computer on receiving signals from the input device can modify the displayed picture appropriately.
the picture changes according to the users command.
What is resolution?
The maximum number of points (pixels) that can be displayed without overlap on a CRT is referred to as their solution. It is also defined as maximum number of points displayed horizontally and vertically without overlapping on a display screen.
More precise definition of resolution is no of dots per inch(dpi/pixel per inch) that can be plotted horizontally and vertically. Resolution of 1280*720 means that there are 1280 horizontal lines and 720 vertical lines or 1280 pixels horizontally and 720 pixels vertically. We can say that the higher is the pixel resolution, the higher is the quality of the image. there are two types of resolutions.
1. Image resolution
Image resolution is defined as the distance from one pixel to the next pixel i.e., pixel spacing.
2. Screen resolution
screen resolution is defined as the number of pixels in the horizontal and vertical dirrection.
What is the impact of resolution on display devices?
Define pixel. What is the use of pixel in display devices?
A pixel is the smallest unit of a digital image or graphic that can be displayed and represented on a digital display device.
A pixel is the basic logical unit in digital graphics. Pixels are combined to form a complete image, video, text, or any visible thing on a computer display.
A pixel is also known as a picture element (pix = picture, el = element).
Pixel
The full form of the pixel is "Picture Element." It is also known as "PEL." Pixel is the smallest element of an image on a computer display, whether they are LCD or CRT monitors. A screen is made up of a matrix of thousands or millions of pixels. A pixel is represented with a dot or a square on a computer screen.
The good thing is that a pixel cannot be seen as they are very small which result in a smooth and clear image rather than "pixelated." Each pixel has a value, or we can say a unique logical address. It can have only one color at a time. Colour of a pixel is determined by the number of bits which is used to represent it. A resolution of a computer screen depends upon graphics card and display monitor, the quantity, size and color combination of pixels.
As we know that an image is build up of thousands and millions of pixels. In the above images, if we zoom in the image, we will be able to see some of the pixels.
Uses of pixel in display devices
THE USE OF THE PIXEL IN GRAPHIC DESIGN
When we open our graphics editing program, when you start with a new project, you will ask us for the resolution or, as we have already seen, for the number of pixels.
The purpose of the resolution is to be able to classify the devices where we are going to show the image:
- It can be our computer.
- A Mobile phone.
- A tablet.
- Printer.
- Also a camera
- A scanner.
- Our TV
The resolution is no more than the total number of pixels that will form the bitmap image. The advanced the number of pixels, the better the image will be. The number of pixels associated with a given image depends on how many pixels the camera’s CCD sensor is using at the time of capturing.
The pixels of the height multiplies by its width to rapid the resolve of an image
Example: An image that has a determination of 1000 x 1000 pixels will result in 1,000,000 pixels. To make it easier to understand, It expresses in megapixels (MP), such that 1,000,000 pixels is equal to 1.0 MP.
It is one of the first concepts that the professional will learn in the world of graphic design. And will be crucial when it comes to achieving the best quality results.
methods available in Dapper
Dapper is a micro ORM library for .NET and .NET Core applications that allows you to execute SQL queries and map the results to objects. D...
-
AddMvcCore minimum set of services to route and invoke controller. most websites will need more configuration than this. AddAuthorization au...
-
code for backend pagination Pagination is a technique for breaking up large sets of data into smaller, more manageable chunks. Here is an ex...
-
This is how we can pass data from child to parent component in vue js. child component should emit a custom event which pass data. parent ...