Skip to main content

Posts

Showing posts from January, 2022

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

How can I use the Mapping Toolbox 2.7.2 (R2009a) to

  How can I use the Mapping Toolbox 2.7.2 (R2009a) to map a specific region of pixels to lat-lon coordinates? I am using a GeoTIFF file, and I would like to know how to do the necessary projections to allow me to map pixels to latitude-longitude coordinates. 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. You can relate image rows and columns to latitude-longitude (if the GeoTIFF file is referenced to a geographic coordinate system) or to map X-Y coordinates (if the GeoTIFF is referenced to a projected coordinate system). First call GEOTIFFINFO and examine the INFO structure that it returns. Examine the 'ModelType' field to see what kind of system the image is in. Then yo

image algo to vhdl conversion

  I am unable to convert a simple image code into vhdl using hdl coder. Please help   FUNCTION:   %#codegen function[a,b]=imate2vhdl(x) a=imread(x); b=im2bw(a); TESTBENCH: x = 'v.jpg'; [a,b]= imate2vhdl(x); imshow(b);   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. The function you wish to generate HDL for contains two function calls (imread and im2bw), and neither function is supported for HDL code generation. imread reads a file from disk and decodes the binary format; in this case, JPEG. I'm not sure what hardware you expect HDL Coder to build for such a function call; in any case, HDL coder does not support it. The reason that HDL Coder does not support im2bw is

Why do my UTM WGS84 calculations not match what MATLAB has calculated?

  I have longitude and latitude data and I have converted them to UTM using WGS 84 standards. When I compare these to the UTM values generated from my lat and long they do not match. Default values for my conversion are from   <http://www.cellspark.com/UTM.html> For example: test=defaultm('utm'); utmzone=35; origin=(utmzone-31).*6+3; test.origin=[0 origin 0]; test=defaultm(test); [eastutm2,northutm2]=mfwdtran(test,44.3536,28.4981); %default values taken from manual lat -> UTM conversion diffnorth2=4912239-northutm2 diffeast2=619393.56-eastutm2   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. This difference occurs because MATLAB’s default reference elli

How do I plot points over a topographic map?

  I have plotted a secton of the globe using ETOPO data. I want to plot points onto this surface, but the following "geoshow" command does not work. Does anyone know how to plot like this?   Thanks!   ax = worldmap([20 50],[-130 -65]);   mstruct = gcm;   latlim = [20 50];   lonlim = [-130 -65];   [Z, refvec] = etopo('etopo1_ice_c.flt', 1, latlim, lonlim);   load coast   geoshow(Z, refvec, 'DisplayType', 'surface');   hold on;   %Plot Stations   A = load('Stations.txt');   for ii=1:length(A)     geoshow(A(ii,1),A(ii,2),'Marker','^','MarkerEdgeColor','k','Markersize',4); hold on; end   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 so

Editbox multiple lines gui

  Hi there   An editbox in my gui will contain information when users push the start button. The information comes from imaqhwinfo command and it displays   InstalledAdaptors: {'gentl' 'gige' 'kinect' 'matrox' 'winvideo'} MATLABVersion: '8.1 (R2013a)' ToolboxName: 'Image Acquisition Toolbox' ToolboxVersion: '4.5 (R2013a)' I am trying to set these informations into an editbox but so far I could not success it.Anyone has an opion? Thanks in advance. 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. Something along these lines?   h = uicontrol('Style','edit',... 'Units

Save multiple plots to a specific path.

  Intro: fairly new to matlab coming from mathematica environment.   Question: I have to calculate based on (x,y) 2D data and plot the same with the answer from the calculation shown on every plot. Assuming I have 10 2D arrays that needs to a FWHM calculation and the FWHM answer written to all of them and saved.   Code below for FWHM function:   function width = fwhm(x,y)% Define function for FWHM at 50% y = y / max(y); % Normalize to 1 so that half max=0.5 N = length(y); % Max length of Y MicroscopeMag=10; % Magnification of objective PixelWidth=7.8; % Pixel Pitch is 7.8 Microns - Hamamatsu. %------- identifies the centre of the peak ---------------% [~,centerindex] = max(y);% Find center peak and coordinate %------- Identifies the last index position before half-maximum ------% %----- Have a range containing the leading edge of the signal -----% i = 2; while sign(y(i)-0.5) == sign(y(i-1)-0.5) %trying to see the curve raise i = i+1; end %-----Interpol

What is the difference between videoinput and imaq.VideoDevice?

  There are two ways to initialize a video object:   vid = videoinput('winvideo'); and vid = imaq.VideoDevice('winvideo') What's the difference? Is one better suited for high-speed acquisition? 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. The object returned by   imaq.VideoDevice  is a   System Object  and is designed for stream processing. The object returned by   videoinput  is just a normal MATLAB object. Under the covers, both objects use the same fundamental implementation so both acquire the same data at the same rate.     Since the   imaq.VideoDevice  is a System Object, it supports code generation with   MATLAB Coder . However, since System Objects

Problem with evaluate(i?magecatego?ryclassifi?er) function from Vision System tool box

  Hello Matlab communtiy, I have a quich question to the evaluate(imagecategoryclassifier) function in matlab. I tried the given sample code, but it seems to missmatch some predicted labels considering the calculated scores. In the help it states that the predicted label corresponds to the highest value given by the score. After I run the example multiple times, it seemed to missmatch at least two labels. Here is the code I ran and the output it produced:     setDir = fullfile(toolboxdir('vision'),'visiondata','imageSets'); imgSets = imageSet(setDir, 'recursive'); [trainingSets, testSets] = partition(imgSets, 0.3, 'randomize'); bag = bagOfFeatures(trainingSets,'Verbose',false); categoryClassifier = trainImageCategoryClassifier(trainingSets, bag); [confMat,knownLabelIdx,predictedLabelIdx,score] = evaluate(categoryClassifier, testSets); disp(score); disp(predictedLabelIdx); -0.6226 -0.3774 -0.6509 -0.3491 -0.4416 -0.5584 -0.4953

how to update image preview axis when listbox gets updated?

  I have a matlab gui listbox (listbox1) that shows my images file name and another axis (images) to show image preview when user clicks on the file name in my listbox. I've created a button 'refresh' to update my listbox values. I managed to update my listbox but my axis is not updating. How do I update this axis as well?   function refreshListboxButton_Callback: files = dir(fullfile(pwd,'*.jpg')); handles.images = cell(1, numel(files)); for x = 1 : numel(files) handles.images{x} = imread(fullfile(pwd,files(x).name)); imshow(handles.images{x}); end set(handles.listbox1,'string',{files.name}); drawnow();   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

No of Pipeline Stages in Verilog coming from an m file (or latency)

  How does one find how many pipeline stages exist in the verilog file. Example, run the mdhlc_sobel filter example from the web site and just pushing the default buttons in work flow advisor I get the design to run fast exceeding my system requirements. However, I dont know how many pipeline registers were put in there. The verilog code seems to show 12 - 15 or more stages (not sure) but I cannot tell what the latency will be. Also, it is hard to see the structure/data flow in the verilog code due to the number of times variables change names and then are pipelined. Version is 2014a. 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. The short answer is that the conversion of the o