2D and 3D Graphics: Transformations, Shaders, and Game Engines
Explain in detail the different 2D transformations
2D transformations modify an object’s position, size, orientation, or shape. They are essential in graphics for scaling images, rotating objects, translating shapes, and shearing figures.
Basic Transformations:
Translation: Moves an object without altering its shape.
Scaling: Enlarges or shrinks an object based on factors Sx,SyS_x, S_y.
Rotation: Rotates an object about a fixed point by angle θ\theta.
Shearing: Distorts an object along the x or y-axis.
Node.js, React, Express.js, MongoDB: Key Concepts
Node.js, React, Express.js, and MongoDB: Key Concepts
Node.js Fundamentals
1) Write any four built-in modules in Node.js.
fs, http, path, os.
2) What is the File System module in Node.js?
The fs module in Node.js handles file operations like reading, writing, and deleting files.
3) What is Nodemon?
Nodemon is a tool that automatically restarts Node.js applications when file changes are detected.
4) What is the full form of REST API?
REST API stands for Representational State Transfer Application Programming
Read MoreUnderstanding Computer Networks: Types and Components
Computer Networks
A computer network is a set of interconnected computers designed to share information, resources, and services.
Network Types by Scope
- Local Area Network (LAN): Limited scope, typically less than 2 km.
- Metropolitan Area Network (MAN): Covers a wider area, usually less than 100 km.
- Wide Area Network (WAN): Scope extends over 100 km.
Advantages of Networking
- Sharing: Enables sharing of data, hardware, and software.
- Reduced Costs: Maximizes the price/performance ratio of network elements.
Operating System Kernels, Multitasking, and Task Scheduling
Kernel Fundamentals and Operating System Types
Kernel: The kernel is the core of the operating system, responsible for managing system resources and communication between hardware and other system services. It acts as an abstraction layer between system resources and user applications, containing a set of system libraries and services. The kernel handles process management, memory (primary and secondary) management, file system management, I/O (device) management, and time management.
Kernel Types
Based
Read MoreExcel Shortcuts: Boost Productivity with Keyboard Commands
Managing Rows and Columns
- Ctrl + +: Insert a new row or column.
- Ctrl + -: Delete the selected row or column.
- Ctrl + Space: Select the entire column.
- Shift + Space: Select the entire row.
- Ctrl + 9: Hide the selected row.
- Ctrl + 0: Hide the selected column.
- Ctrl + Shift + 9: Unhide hidden rows.
- Ctrl + Shift + 0: Unhide hidden columns.
Cell Formatting
- Ctrl + 1: Open the Format Cells dialog.
- Ctrl + B: Apply or remove bold formatting.
- Ctrl + I: Apply or remove italic formatting.
- Ctrl + U: Apply or remove underline.
Image Matching with SIFT and RANSAC: A Practical Example
Image Matching with SIFT and RANSAC
This document demonstrates image matching using SIFT (Scale-Invariant Feature Transform) and RANSAC (RANdom SAmple Consensus) algorithms. The code snippets below illustrate the process.
Import Libraries
import cv2
import os
import matplotlib.pyplot as plt
import numpy as npDefine Query Images
query_images = [
'query//hw7_poster_1.jpg',
'query/hw7_poster_2.jpg',
'query/hw7_poster_3.jpg'
]Function to Show Combined Images
def show_combined(image_1, image_2) Read More
