Skip to main content

Posts

Showing posts from February, 2022

Stretch the dynamic range of the given 8-bit grayscale image using MATL...

Why can I save the cropped image from IMTOOL in the Image Processing

  Why can I save the cropped image from IMTOOL in the Image Processing Toolbox 7.2 (R2011a) but not the contrast adjusted image? I open an image using IMTOOL. I crop the image and then open the Adjust Contrast window and saturate my image. When I close the Adjust Contrast window, the contrast changes are still observed from IMTOOL. However when I export my figure to the workspace, only the cropping is reflected but my image is still not saturated. How can I obtain the saturated image as well?     NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. To obtain the saturated image, you can export the image to the MATLAB workspace using the following steps:   1. Open image using IMTOOL 2.

How to test if points are inside a point cloud model

  I have a point cloud of a tree trunk, imported as a ply file. It is a point cloud so the tree trunk is not a surface, but points with gaps in between.   I also have the 3D coordinates of a bunch of points. How do I remove those points that are not inside the tree trunk? The model is not parallel with the axes by the way.   Here's a dropbox link for the ply file. Coordinates and values of the points are in the attached all_control_points.mat file. There's no code yet except the ones to generate this data. NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. Hi. I wrote a script and somehow it works 0_0. See attached script This is what i ahieved     Maybe someone can please e

Why MATLAB R2014a can not recognize my usb camera, while my camera works fine with amcap ?

  My usb camera works fine with amcap ,but R2014a hardware browser can not see my camera.   The result of imaqhwinfo is below   >> imaqhwinfo   ans =   InstalledAdaptors: {} MATLABVersion: '8.3 (R2014a)' ToolboxName: 'Image Acquisition Toolbox' ToolboxVersion: '4.7 (R2014a)' << >>   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. Hi,   look at the line InstalledAdaptors: {} You don't have any adaptor installed. Please install at least winvideo and you cam should be detected. In order to install the adaptors run >>supportPackageInstaller and follow the instructions (choose the OS Generic Video Interfa

ROI selection without overlap

  I'm trying to select several ROI's from an image using the following code:   for i=1:nbrois roi3d{i}=roipoly(A); end Which works OK...I however, need to be sure that those ROIs don't overlap with each other. Is there a way of selecting the first ROI, have the program show the polygon on top of the image to select the second ROI and so on? In other words, I want to select the ROIs with all the previous ROIs displayed on the image, is that possible?   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. There is no built-in function of ROIPOLY, that I know of, that will do this. So, you'll need to alter your raw image to outline/overlay the regions you have

Crop a image using 'imfreehand' and move the cropped region to the center of black background

  I've cropped an ROI with imfreehand() and plotted the center of it using mean (position of cropped region). Then I've plotted the center of completely black image. For the resulting image to have the cropped image at center of black background, is it OK to map the marked centers of both images, or get positions for moving the region manually? I want to do this for   multiple  images, so is it possible to apply any formula or function? Also I've attached example images and sample output. Kindly help me in this. I've tried also tried using circular shift, circshift(), for moving the cropped portion to the center of black background, but it is not working. Applying a circular shift made the ROI to move like half portion up an remaining down the center of black image. Why did it appear so? Original Image: ROI with centroid marked: Center of black image: Desired output image:   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for st

What's the most efficient way to isolate a connected

  What's the most efficient way to isolate a connected region in a binary image given a point contained within that region? I have a series of binary images with various numbers of 8-connected regions within them. Given a single coordinate lying within one of those regions, what is the most efficient way to generate a binary image that isolates only the connected region containing that point?   For example, given the top image and a single coordinate somewhere in the central region, how can I most efficiently produce the bottom image?   I'm currently doing this using progressive imdilate operations with a 3x3 square SE until I find a stable image. This method seems very inefficient, though, and since I'm doing this kind of operation millions of times within my program, I want to know if I can be doing much better. Any advice from the image processing experts out there?         NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for stud

Video frame selection

  I'm sure this has an easy answer but if I set a trigger to capture 2 frames how can I independently assign '[vid,1]' and '[vid,2]' as variables? My reason for doing this is to subtract one image from another (and then divide the qualitative noise. 2 to the power of 0.5, Dark current calculations).   vid = videoinput('gige', 1, 'Mono16'); src = getselectedsource(vid); vid.FramesPerTrigger = 2; start(vid);     NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. There are a number of ways to this that are roughly equivalent. By default the   GETDATA  command returns   N  frames where   N  is equal to the value of the   FramesPerTrigger  property whe

Matlab 2012a vs. Matlab 2013a

   I am a newer user of Matlab and have been experimenting with the Image Processing toolbox. As far a comparing version R2012a versus R2013a have any of you found any issues, positive changes, are know where to learn more about the benefits to using one versus the other? NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. From the   Image Processing  Toolbox Release Notes  for R2012b and R2013a: R2013a: Image segmentation using active contours Classes and functions for representing and applying 2-D and 3-D geometric transformations Classes for defining world coordinate system of an image Code generation for conndef, imcomplement, imfill, imhmax, imhmin, imreconstruct, imregionalmax,

How can I tune the threshold in majority operation

  How can I tune the threshold in majority operation with BWMORPH in Image Processing Toolbox 6.1 (R2009a)? The majority action in BWMORPH sets a pixel to 1 if five or more pixels in its 3-by-3 neighborhood are 1s; otherwise, it sets the pixel to 0.   I would like to do it with a number different from five.   NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. To apply a morphological operation on binary images similar to majority but with a different number of pixels as a threshold in Image Processing Toolbox 6.1 (R2009a) use the MAKELUT and APPLYLUT functions.   For example, you define the following function: function Result = MyBWMorph (BW, n) f = @(x) (sum(x(:)) >= n); lut =

Morphological Transformation, remove border border of a closed image

  Hello   I need to remove the upper border (red highligth) of this binarized image without affecting the bottom section, i haven't been able to figure out exactly which functions of the  Image Processing Toolbox  could help me.     NOTE:- Matlabsolutions.com  provide latest  MatLab Homework Help, MatLab Assignment Help  for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research. Using morphological operations and connected components algorithm, the problem can be solved with the minor loss of bottom pixels.For example:   a=imread('imag.jpeg'); figure;imshow(a) se = strel('line',8,90); eroded = imerode(a,se); b=logical(eroded); st=regionprops('Table',b(:,:,1),'Area'); m=maxk(st.Area,2); biggest = bwareafilt(b(:,:,1),[m(2) m(1)]); figure;imshow(