Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9268273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:46:06+00:00 2026-06-18T14:46:06+00:00

I have extracted profile on cross-section of vessel by following code imshow(image); % image

  • 0

Profile

I have extracted profile on cross-section of vessel by following code

 imshow(image); % image is not shown
 [cx,cy,c,xi,yi] = improfile;

Here c is the intensity along the profile and I plot them using:

 x=1:length(c);
 figure
 plot(x,c,'o')
 axis([0 45 80 150])

and it look like the one I have uploaded.
c is 33X1 intensity vector where, c=[123 126 131 138 139 141 143 143 144 141 136 126 102 96 91 100 100 113 109 96 94 90 101 107 116 123 127 130 131 132 131 129 131];

I want to detect index of c to find A (max in left side),B (max in right side),C (min in left side), D(min in rt side) and E (middle) points in the profile.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:46:07+00:00Added an answer on June 18, 2026 at 2:46 pm

    The function peakdet released in the public domain (http://www.billauer.co.il/peakdet.html) seems to do the job on the first try. You can try to play with the second parameter of the function to be more / less selective.

    c=[123 126 131 138 139 141 143 143 144 141 136 126 102 96 91 100 100 113 109 96 94 90 101 107 116 123 127 130 131 132 131 129 131];
    [ma mi]=peakdet(c,1);
    
    ma =
         9   144
        18   113
        30   132
    
    mi =
        15    91
        22    90
        32   129
    

    EDIT: this question could be of interest: How to differentiate between a double peak and a single peak array in MATLAB?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have extracted the following code from selenium IDE.(c# remote control) using System; using
I have done the following code to extract an image from a URL, but
I have extracted a MAC address into a char* array such that each section
I have the following code in my sessions controller which saves information such as
I have extracted the Gray Value from an image file (format .3pi) and wrote
I have a login form with the following code if ($does_user == 1)//Als het
I have extracted some of my concrete classes into interfaces I used to have
I'm trying to implement SVM in opencv for features that I have extracted features
I have just Extracted the cells from the excel sheet using Apache POI, everything
I have some html extracted to a string var, and want to then use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.